aboutsummaryrefslogtreecommitdiff
path: root/cgi/weabot.py
diff options
context:
space:
mode:
Diffstat (limited to 'cgi/weabot.py')
-rwxr-xr-xcgi/weabot.py7
1 files changed, 3 insertions, 4 deletions
diff --git a/cgi/weabot.py b/cgi/weabot.py
index 48f19f5..3ecf0f3 100755
--- a/cgi/weabot.py
+++ b/cgi/weabot.py
@@ -235,8 +235,8 @@ class weabot(object):
self.output = renderTemplate('txt_newthread.html', {}, True)
elif path_split[1] == "mobilehome":
OpenDb()
- latest_age_ib = getLastAge(0, Settings.HOME_LASTPOSTS)
- latest_age_bbs = getLastAge(1, Settings.HOME_LASTPOSTS)
+ latest_age_ib = getLastAge(0, 10)
+ latest_age_bbs = getLastAge(1, 10)
for threads in latest_age_ib:
content = threads['url']
content = content.replace('/read/', '/')
@@ -261,8 +261,7 @@ class weabot(object):
content = content.replace('.html', '')
threads['url'] = content
caught = True
- self.output = renderTemplate(
- 'newest.html', {'newthreads': newthreads}, True)
+ self.output = renderTemplate('newest.html', {'newthreads': newthreads}, True)
elif path_split[1] == "mobileread":
OpenDb()
board = setBoard(path_split[2])