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

Commit

Permalink
Improve metadata handling
Browse files Browse the repository at this point in the history
  • Loading branch information
freedomofkeima committed Aug 27, 2017
1 parent 37174ba commit ed3182d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions maidchan/cmds/scheduler_worker.py
Original file line number Diff line number Diff line change
Expand Up @@ -286,6 +286,8 @@ def main():
metadata["vocabulary"] = get_random_vocabulary()

# Set next_mt
if "next_mt" not in metadata:
metadata["next_mt"] = current_mt
metadata["next_mt"] += 86400 # every 1 day

# Save to DB
Expand Down

0 comments on commit ed3182d

Please sign in to comment.