wip fixes (get values from db for abbr and link)

This commit is contained in:
Cyrille L 2023-03-14 15:34:43 +01:00
parent a1154029d1
commit 3de1bc4198
2 changed files with 3 additions and 2 deletions

View File

@ -71,4 +71,5 @@ def out(nbr, value, out):
msg = logs[nbr] msg = logs[nbr]
print(msg) print(msg)
if int(nbr) == 21: nbr = 0
if out: sys.exit(int(nbr)) if out: sys.exit(int(nbr))

View File

@ -268,7 +268,7 @@ def wip_links():
if db.uniq_links > 0: if db.uniq_links > 0:
for i in range(1, db.uniq_links + 1): for i in range(1, db.uniq_links + 1):
link = 'link_%s'%i link = 'db.link_%s'%i
post_bottom = post_bottom.replace(eval(link)[0]+'+', post_bottom = post_bottom.replace(eval(link)[0]+'+',
eval(link)[1]%('_blank') eval(link)[1]%('_blank')
) )
@ -286,7 +286,7 @@ def wip_abbrs():
global post_bottom global post_bottom
for i in range(1, db.uniq_abbrs + 1): for i in range(1, db.uniq_abbrs + 1):
abbr = 'abbr_%s'%i abbr = 'db.abbr_%s'%i
post_bottom = post_bottom.replace(eval(abbr)[0], post_bottom = post_bottom.replace(eval(abbr)[0],
eval(abbr)[1] eval(abbr)[1]
) )