Some minor fixes to app_sync.py
This commit is contained in:
parent
b06a9b578e
commit
7413437b4c
2 changed files with 89 additions and 1 deletions
|
|
@ -1,6 +1,8 @@
|
|||
"""
|
||||
Helper module for sync.
|
||||
|
||||
Remember to set sync:master variable in site.conf!
|
||||
|
||||
(c) 2021 Sakuragasaki46.
|
||||
"""
|
||||
|
||||
|
|
@ -118,7 +120,7 @@ def main():
|
|||
failed += 1
|
||||
continue
|
||||
else:
|
||||
if pageinfo["touched"] > p.touched:
|
||||
if pageinfo["touched"] > p.touched.timestamp():
|
||||
update_page(p, pageinfo)
|
||||
passed += 1
|
||||
with open(DATABASE_DIR + "/last_sync", "w") as fw:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue