From 2743cc8c5579e5977f677ab3f9c26f61e52a54d9 Mon Sep 17 00:00:00 2001 From: Cyrille L Date: Fri, 6 Jan 2023 16:37:09 +0100 Subject: [PATCH] wip: 'again'. Fix hash_wip from root_uri + check if hash_wip in DB --- src/var/lib/tyto/program/wip.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/var/lib/tyto/program/wip.py b/src/var/lib/tyto/program/wip.py index 3cbea08..99f249e 100644 --- a/src/var/lib/tyto/program/wip.py +++ b/src/var/lib/tyto/program/wip.py @@ -38,8 +38,10 @@ def manage_wip(target, option): # Load DB post_db = '%s%s'%(domain_db, post_db) exec(open(post_db).read(),globals()) + if not hash_wip: continue + print("->", root_uri) - hash_post = tyto.get_filesum(post_db, True) # From content file + hash_post = tyto.get_filesum(root_uri, True) # From content file wip_article(root_uri) return