From 7a93bfccc3851e789773fc0d5df30a63d93e67f6 Mon Sep 17 00:00:00 2001 From: Cyrille L Date: Fri, 10 Mar 2023 12:21:51 +0100 Subject: [PATCH] fix: post_bottom in wip_raws --- src/var/lib/tyto/program/wip.py | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/src/var/lib/tyto/program/wip.py b/src/var/lib/tyto/program/wip.py index 70395d0..03533fe 100644 --- a/src/var/lib/tyto/program/wip.py +++ b/src/var/lib/tyto/program/wip.py @@ -135,9 +135,6 @@ def wip_article(target): wip_raws(target) # Read file and convert to HTML wip_tabs() # make HTML tabulations - # Result (temp display) - #print(article_bottom) - # Replace in DB hash_wip and date_wip tyto.replace_in_db(db.post_db, 'wip', db.hash_post) @@ -652,9 +649,9 @@ def wip_titles(): def wip_raws(target): if db.uniq_raws == 0: return - global article_bottom + global post_bottom - for i in range(1, db.xtuniq_raws + 1): + for i in range(1, db.uniq_raws + 1): raw = 'db.raw_%s'%i raw_file = open( '%s%s'%( @@ -671,9 +668,10 @@ def wip_raws(target): ) raw_html = '%s\n \n'%(raw_html) - article_bottom = article_bottom.replace( - eval(raw)[0], raw_html - ) + post_bottom = post_bottom.replace(eval(raw)[0], + raw_html + ) + #=======================# # Make HTML tabulations #