Skip to content
This repository has been archived by the owner on Jul 22, 2022. It is now read-only.

Commit

Permalink
Fix Japanese mt logic
Browse files Browse the repository at this point in the history
  • Loading branch information
freedomofkeima committed Jun 13, 2017
1 parent 3db6037 commit 37174ba
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion maidchan/cmds/scheduler_worker.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,8 @@ def process_user_schedules(redis_client, recipient_id, metadata, current_mt):
bot.send_text_message(recipient_id, message)
except Exception:
pass
user["schedules"]["japanese_lesson_mt"] += 86400
while user["schedules"]["japanese_lesson_mt"] < int(time.time()):
user["schedules"]["japanese_lesson_mt"] += 86400
redis_client.set_user(recipient_id, user)
logging.info("Japanese scheduler for {} - {} is executed!".format(
recipient_id,
Expand Down

0 comments on commit 37174ba

Please sign in to comment.