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 #