wip
This commit is contained in:
@@ -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):
|
||||||
|
|||||||
@@ -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))
|
||||||
|
|||||||
Reference in New Issue
Block a user