Fixed output logic

This commit is contained in:
Anon 2022-08-31 01:22:42 -07:00
parent 068937803e
commit 037e133759

View File

@ -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)