Add WIP forum topic support

This commit is contained in:
rubenwardy
2018-07-06 23:15:56 +01:00
parent 9dd3570a52
commit 67a229b8a3
9 changed files with 52 additions and 10 deletions

View File

@@ -87,8 +87,10 @@ def importTopicList():
links_by_id = getLinksFromModSearch()
info_by_id = {}
getTopicsFromForum(11, out=info_by_id, extra={ 'type': PackageType.MOD })
getTopicsFromForum(15, out=info_by_id, extra={ 'type': PackageType.GAME })
getTopicsFromForum(11, out=info_by_id, extra={ 'type': PackageType.MOD, 'wip': False })
getTopicsFromForum(9, out=info_by_id, extra={ 'type': PackageType.MOD, 'wip': True })
getTopicsFromForum(15, out=info_by_id, extra={ 'type': PackageType.GAME, 'wip': False })
getTopicsFromForum(50, out=info_by_id, extra={ 'type': PackageType.GAME, 'wip': True })
# Caches
username_to_user = {}
@@ -131,6 +133,7 @@ def importTopicList():
topic.title = title
topic.name = name
topic.link = link
topic.wip = info["wip"]
topic.posts = info["posts"]
topic.views = info["views"]
topic.created_at = info["date"]