diff options
author | Renard | 2020-07-21 22:29:29 -0400 |
---|---|---|
committer | Renard | 2020-07-21 22:29:29 -0400 |
commit | 521a821d8a91dd62d36e60e17cbabab48e017365 (patch) | |
tree | 9dfce2edb88e350e602c7400086f5dd76b7c77f2 /cgi | |
parent | 126fd50f95bca07514d7cdebe6d4bfc5a585693b (diff) | |
download | weabot-521a821d8a91dd62d36e60e17cbabab48e017365.tar.gz weabot-521a821d8a91dd62d36e60e17cbabab48e017365.tar.xz weabot-521a821d8a91dd62d36e60e17cbabab48e017365.zip |
Mod API: Logs
Diffstat (limited to 'cgi')
-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') |