Corrected after_pick() logic
This commit is contained in:
parent
eed87f229d
commit
70a9f7457e
12
src/main.py
12
src/main.py
@ -158,11 +158,13 @@ class YandereBot(FediBot.YandereBot):
|
|||||||
}
|
}
|
||||||
|
|
||||||
def after_pick(self, picked):
|
def after_pick(self, picked):
|
||||||
self.print_header_stats(picked["picked"])
|
if picked:
|
||||||
self.currentProfileIndex[self.currentIndexCount] += 1
|
self.currentProfileIndex[self.currentIndexCount] += 1
|
||||||
self.currentIndexCount += 1
|
self.currentIndexCount += 1
|
||||||
os.remove(picked["picked"]["full_path"])
|
self.print_header_stats(picked["picked"])
|
||||||
return super(YandereBot, self).after_pick(picked)
|
os.remove(picked["picked"]["full_path"])
|
||||||
|
else:
|
||||||
|
self.print_header_stats(None)
|
||||||
|
|
||||||
def post(self, picked):
|
def post(self, picked):
|
||||||
# Attempt post
|
# Attempt post
|
||||||
|
Reference in New Issue
Block a user