This commit is contained in:
wea_ondara
2019-08-13 18:38:14 +02:00
parent e032a1f35b
commit 696c11fa83
2 changed files with 3 additions and 2 deletions

View File

@@ -209,7 +209,7 @@ def main(folder, intervl):
os.system(magickglobal + " batch_newusers.pdf") os.system(magickglobal + " batch_newusers.pdf")
os.system(magickold + " batch_oldusers.pdf") os.system(magickold + " batch_oldusers.pdf")
for (i, cmd) in magickpost.items(): for (i, cmd) in magickpost.items():
os.system(cmd + " " + "batch_newusers_" + i + ".pdf") os.system(cmd + " " + "batch_newusers_" + str(i) + ".pdf")
def dumptoxlevels(lvls, filename): def dumptoxlevels(lvls, filename):

View File

@@ -11,6 +11,7 @@ from mt import mt
import gc import gc
TAG_RE = re.compile(r'<[^>]+>') TAG_RE = re.compile(r'<[^>]+>')
TAG_CODE = re.compile(r'<code.+</code>')
printnoln = lambda text: print(text, end='', flush=True) printnoln = lambda text: print(text, end='', flush=True)
rprint = lambda text: print('\r' + text) rprint = lambda text: print('\r' + text)
@@ -214,4 +215,4 @@ def setprop(dic, key, value):
def removetags(text): def removetags(text):
return TAG_RE.sub('', text) return TAG_RE.sub('', TAG_CODE.sub('', text))