diff options
author | rubenwardy <rw@rubenwardy.com> | 2018-07-06 23:15:56 +0100 |
---|---|---|
committer | rubenwardy <rw@rubenwardy.com> | 2018-07-06 23:17:56 +0100 |
commit | 67a229b8a3152329917a0e783822c71d4a53d978 (patch) | |
tree | c8eac9da8f906dfd92c6bc90833ddee367933b81 /app/tasks | |
parent | 9dd3570a52027ecb8e84dacb87d66fc511812c3c (diff) | |
download | cheatdb-67a229b8a3152329917a0e783822c71d4a53d978.tar.xz |
Add WIP forum topic support
Diffstat (limited to 'app/tasks')
-rw-r--r-- | app/tasks/forumtasks.py | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/app/tasks/forumtasks.py b/app/tasks/forumtasks.py index 5513fb2..338ffa2 100644 --- a/app/tasks/forumtasks.py +++ b/app/tasks/forumtasks.py @@ -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"] |