aboutsummaryrefslogtreecommitdiff
path: root/app/tasks/forumtasks.py
diff options
context:
space:
mode:
authorrubenwardy <rw@rubenwardy.com>2018-12-21 14:02:57 +0000
committerrubenwardy <rw@rubenwardy.com>2018-12-21 14:02:57 +0000
commitdd368d87aa926ef2676b22ccee95934a38be7fac (patch)
treed449b9e68053084710156c668230d24605cda795 /app/tasks/forumtasks.py
parente5b279d0139e4371eb22dbf1341bcf7089afc7ca (diff)
downloadcheatdb-dd368d87aa926ef2676b22ccee95934a38be7fac.tar.xz
Fix various issues
Diffstat (limited to 'app/tasks/forumtasks.py')
-rw-r--r--app/tasks/forumtasks.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/app/tasks/forumtasks.py b/app/tasks/forumtasks.py
index dc8be7f..8327a17 100644
--- a/app/tasks/forumtasks.py
+++ b/app/tasks/forumtasks.py
@@ -74,7 +74,7 @@ def parseTitle(title):
def getLinksFromModSearch():
links = {}
- contents = urllib.request.urlopen("http://krock-works.16mb.com/MTstuff/modList.php").read().decode("utf-8")
+ contents = urllib.request.urlopen("https://krock-works.uk.to/minetest/modList.php").read().decode("utf-8")
for x in json.loads(contents):
link = x.get("link")
if link is not None:
@@ -127,15 +127,15 @@ def importTopicList():
link = links_by_id.get(id)
# Fill row
- topic.topic_id = id
+ topic.topic_id = int(id)
topic.author = user
topic.type = info["type"]
topic.title = title
topic.name = name
topic.link = link
topic.wip = info["wip"]
- topic.posts = info["posts"]
- topic.views = info["views"]
+ topic.posts = int(info["posts"])
+ topic.views = int(info["views"])
topic.created_at = info["date"]
for p in Package.query.all():