mirror of
https://github.com/solero/houdini.git
synced 2024-11-25 06:57:24 +00:00
Merge remote-tracking branch 'origin/master'
This commit is contained in:
commit
30d36157eb
@ -166,7 +166,7 @@ class _ListenerManager(_AbstractManager):
|
|||||||
if listener_object.before is not None:
|
if listener_object.before is not None:
|
||||||
index_of_before = self[listener_object.packet].index(listener_object.before)
|
index_of_before = self[listener_object.packet].index(listener_object.before)
|
||||||
old_index = self[listener_object.packet].index(listener_object)
|
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:
|
if listener_object.after is not None:
|
||||||
index_of_after = self[listener_object.packet].index(listener_object.after)
|
index_of_after = self[listener_object.packet].index(listener_object.after)
|
||||||
old_index = self[listener_object.packet].index(listener_object)
|
old_index = self[listener_object.packet].index(listener_object)
|
||||||
|
@ -51,7 +51,8 @@ async def handle_rainbow_quest_cookie(p):
|
|||||||
|
|
||||||
if task_completion:
|
if task_completion:
|
||||||
quest_wait = RainbowQuestWaitMember if p.is_member else RainbowQuestWait
|
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)
|
minutes_remaining = int((task_availability - current_datetime).total_seconds() // 60)
|
||||||
task_availability_unix = task_availability.timestamp()
|
task_availability_unix = task_availability.timestamp()
|
||||||
else:
|
else:
|
||||||
|
Loading…
Reference in New Issue
Block a user