fix: post_bottom in wip_raws

This commit is contained in:
Cyrille L 2023-03-10 12:21:51 +01:00
parent 6671b03e95
commit 7a93bfccc3
1 changed files with 6 additions and 8 deletions

View File

@ -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 </code>\n</pre>'%(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 #