wip fixes (get values from db for abbr and link)
This commit is contained in:
parent
a1154029d1
commit
3de1bc4198
|
@ -71,4 +71,5 @@ def out(nbr, value, out):
|
|||
msg = logs[nbr]
|
||||
print(msg)
|
||||
|
||||
if int(nbr) == 21: nbr = 0
|
||||
if out: sys.exit(int(nbr))
|
||||
|
|
|
@ -268,7 +268,7 @@ def wip_links():
|
|||
|
||||
if db.uniq_links > 0:
|
||||
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]+'+',
|
||||
eval(link)[1]%('_blank')
|
||||
)
|
||||
|
@ -286,7 +286,7 @@ def wip_abbrs():
|
|||
global post_bottom
|
||||
|
||||
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],
|
||||
eval(abbr)[1]
|
||||
)
|
||||
|
|
Loading…
Reference in New Issue