Fixed output logic
This commit is contained in:
parent
068937803e
commit
037e133759
@ -125,7 +125,7 @@ class YandereBot:
|
|||||||
picked_url = picked["file_url"] if picked else None
|
picked_url = picked["file_url"] if picked else None
|
||||||
picked_path = picked["full_path"] if picked else None
|
picked_path = picked["full_path"] if picked else None
|
||||||
picked_nsfw = picked["nsfw"] if picked else None
|
picked_nsfw = picked["nsfw"] if picked else None
|
||||||
picked_index = (self.currentIndexCount % len(self.settings_post)) - 1
|
picked_index = max(0, self.currentIndexCount - 1) % len(self.settings_post)
|
||||||
next_selection_seconds = max(0, int(time_diff_seconds(date_next_selection, date_selection)))
|
next_selection_seconds = max(0, int(time_diff_seconds(date_next_selection, date_selection)))
|
||||||
|
|
||||||
print("[Profile]", picked_name, "[Index]", picked_index)
|
print("[Profile]", picked_name, "[Index]", picked_index)
|
||||||
|
Reference in New Issue
Block a user