diff options
-rw-r--r-- | cgi/modapi.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/cgi/modapi.py b/cgi/modapi.py index 0d082e9..a3465e1 100644 --- a/cgi/modapi.py +++ b/cgi/modapi.py @@ -64,6 +64,9 @@ def api_process(self, path_split): reports = FetchAll( "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 + elif method == 'logs': + logs = FetchAll("SELECT * FROM `logs` ORDER BY `timestamp` DESC") + values['logs'] = logs elif method == 'login': # testing username = formdata.get('username') |