Fixed line resetting due to errors
This commit is contained in:
parent
955f92ced0
commit
18961ba5e2
@ -106,15 +106,15 @@ class YandereBot(FediBot.YandereBot):
|
|||||||
# Maybe I should remove this from the backend?
|
# Maybe I should remove this from the backend?
|
||||||
def print_header_stats(self, picked):
|
def print_header_stats(self, picked):
|
||||||
picked_profile, _picked = [None]*2
|
picked_profile, _picked = [None]*2
|
||||||
line = "0"
|
line = self.currentLine
|
||||||
|
|
||||||
if picked:
|
if picked:
|
||||||
_picked = picked.get_path()
|
_picked = picked.get_path()
|
||||||
picked_profile = picked.get_path_profile()["name"]
|
picked_profile = picked.get_path_profile()["name"]
|
||||||
line = str(self.currentLine - 1)
|
line -= 1
|
||||||
|
|
||||||
print("Profile: {} | Picked: {} | Line: {}".format(
|
print("Profile: {} | Picked: {} | Line: {}".format(
|
||||||
picked_profile, _picked, line
|
picked_profile, _picked, str(line)
|
||||||
))
|
))
|
||||||
|
|
||||||
def getline(self):
|
def getline(self):
|
||||||
|
Reference in New Issue
Block a user