diff options
author | Renard | 2020-07-21 22:31:20 -0400 |
---|---|---|
committer | Renard | 2020-07-21 22:31:20 -0400 |
commit | cff1db8bcacb369938384c9b99116b7a3d9842b9 (patch) | |
tree | 88859971526f88432a4d173ec29f365b315498b6 /cgi | |
parent | 521a821d8a91dd62d36e60e17cbabab48e017365 (diff) | |
download | weabot-cff1db8bcacb369938384c9b99116b7a3d9842b9.tar.gz weabot-cff1db8bcacb369938384c9b99116b7a3d9842b9.tar.xz weabot-cff1db8bcacb369938384c9b99116b7a3d9842b9.zip |
Mod API: Staff posts
Diffstat (limited to 'cgi')
-rw-r--r-- | cgi/modapi.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/cgi/modapi.py b/cgi/modapi.py index a3465e1..c76cb8b 100644 --- a/cgi/modapi.py +++ b/cgi/modapi.py @@ -67,6 +67,10 @@ def api_process(self, path_split): elif method == 'logs': logs = FetchAll("SELECT * FROM `logs` ORDER BY `timestamp` DESC") values['logs'] = logs + elif method == 'staffPosts': + posts = FetchAll( + "SELECT * FROM `news` WHERE type = '0' ORDER BY `timestamp` DESC") + values['posts'] = posts elif method == 'login': # testing username = formdata.get('username') |