Merge remote-tracking branch 'origin/master'

This commit is contained in:
rsakeys 2020-04-07 19:38:49 +01:00
commit 30d36157eb
2 changed files with 3 additions and 2 deletions

View File

@ -166,7 +166,7 @@ class _ListenerManager(_AbstractManager):
if listener_object.before is not None:
index_of_before = self[listener_object.packet].index(listener_object.before)
old_index = self[listener_object.packet].index(listener_object)
self[listener_object.packet].insert(index_of_before, self[listener_object.packet].pop(old_index))
self[listener_object.packet].insert(index_of_before - 1, self[listener_object.packet].pop(old_index))
if listener_object.after is not None:
index_of_after = self[listener_object.packet].index(listener_object.after)
old_index = self[listener_object.packet].index(listener_object)

View File

@ -51,7 +51,8 @@ async def handle_rainbow_quest_cookie(p):
if task_completion:
quest_wait = RainbowQuestWaitMember if p.is_member else RainbowQuestWait
task_availability = datetime.utcfromtimestamp(int(task_completion)) + quest_wait
task_availability = datetime.fromtimestamp(int(task_completion)) + quest_wait
minutes_remaining = int((task_availability - current_datetime).total_seconds() // 60)
task_availability_unix = task_availability.timestamp()
else: