aboutsummaryrefslogtreecommitdiff
path: root/cgi
diff options
context:
space:
mode:
Diffstat (limited to 'cgi')
-rw-r--r--cgi/modapi.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/cgi/modapi.py b/cgi/modapi.py
index 00b4beb..0d082e9 100644
--- a/cgi/modapi.py
+++ b/cgi/modapi.py
@@ -62,9 +62,8 @@ def api_process(self, path_split):
values['news'] = news
elif method == 'reports':
reports = FetchAll(
- "SELECT * FROM `reports` ORDER BY `timestamp` DESC")
+ "SELECT id, timestamp, timestamp_formatted, postid, parentid, link, board, INET6_NTOA(ip) AS ip, reason, INET6_NTOA(repip) AS repip FROM `reports` ORDER BY `timestamp` DESC")
values['reports'] = reports
- values['keys'] = reports[0].keys()
elif method == 'login':
# testing
username = formdata.get('username')