From 02df6de6d5337647b0a48673cf8882b901bea453 Mon Sep 17 00:00:00 2001 From: Andrew Date: Fri, 1 Sep 2023 14:54:38 -0400 Subject: [PATCH] Remove prints. Remove test notif --- app/classes/shared/helpers.py | 9 --------- app/classes/web/routes/api/crafty/announcements/index.py | 2 -- 2 files changed, 11 deletions(-) diff --git a/app/classes/shared/helpers.py b/app/classes/shared/helpers.py index 59c1ae3a..9c74135d 100644 --- a/app/classes/shared/helpers.py +++ b/app/classes/shared/helpers.py @@ -582,15 +582,6 @@ class Helpers: @staticmethod def get_announcements(): data = [] - data = [ - { - "id": "4db1a43b-d451-4abc-bb10-5a45676d95f7", - "date": "Unknown", - "title": "Error getting Announcements", - "desc": "Error getting Announcements", - "link": "", - } - ] try: response = requests.get("https://craftycontrol.com/notify.json", timeout=2) data = json.loads(response.content) diff --git a/app/classes/web/routes/api/crafty/announcements/index.py b/app/classes/web/routes/api/crafty/announcements/index.py index a7012466..79899e9e 100644 --- a/app/classes/web/routes/api/crafty/announcements/index.py +++ b/app/classes/web/routes/api/crafty/announcements/index.py @@ -63,10 +63,8 @@ class ApiAnnounceIndexHandler(BaseApiHandler): _, _user, ) = auth_data - print(self.request) try: data = json.loads(self.request.body) - print(data) except json.decoder.JSONDecodeError as e: return self.finish_json( 400, {"status": "error", "error": "INVALID_JSON", "error_data": str(e)}