aboutsummaryrefslogtreecommitdiff
path: root/cgi/api.py
diff options
context:
space:
mode:
Diffstat (limited to 'cgi/api.py')
-rw-r--r--cgi/api.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/cgi/api.py b/cgi/api.py
index 19122d0..40fb5c6 100644
--- a/cgi/api.py
+++ b/cgi/api.py
@@ -385,6 +385,9 @@ def api_process(self, path_split):
threads = getNewThreads(limit)
values['threads'] = threads
+ elif method == "blotter":
+ latest_news = FetchAll("SELECT `timestamp`, `message`, `timestamp_formatted` FROM `news` WHERE `type` = '2' ORDER BY `timestamp` DESC LIMIT " + str(Settings.HOME_NEWS))
+ values["news"] = latest_news
else:
raise APIError, "Invalid method"