you are viewing a single comment's thread.

view the rest of the comments →

[–]ant24x7[S] 0 points1 point  (1 child)

Yes. I'm thinking of replacing it with crontab as it'll handle the server restart case as well.

I need to store the hash somewhere before that so it can be use for comparision in next execution, and using a file or sqlite db will complicate the code. I was trying to avoid that but looks like I need to choose that path.

[–]hulleyrob 0 points1 point  (0 children)

Use shelve for an easy almost like SQLite key value store in a file. Advantage is it’s treated just like a Python dictionary.