diff options
Diffstat (limited to 'cgi')
-rw-r--r-- | cgi/api.py | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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" |