This commit is contained in:
wea_ondara
2019-08-13 18:24:41 +02:00
parent 0536f5db5f
commit e032a1f35b
3 changed files with 39 additions and 10 deletions

View File

@@ -8,6 +8,7 @@ from collections import defaultdict
from datetime import datetime
from mt import mt
import gc
TAG_RE = re.compile(r'<[^>]+>')
@@ -23,7 +24,9 @@ def cms(): return int(round(time.time() * 1000))
def load(folder):
users = readUsers(folder + "/Users.xml")
gc.collect()
posts = readPosts(folder + "/Posts.xml")
gc.collect()
# get first contribution to page:
firstcontrib = computefirstcontrib(posts)