From a466968de44a6081dca912ed81163bbf0ea19ba1 Mon Sep 17 00:00:00 2001 From: Trent Larson Date: Sun, 24 Dec 2023 21:18:03 -0700 Subject: [PATCH] fix another dict/attribute problem --- app.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app.py b/app.py index f5c790b..dffff2c 100644 --- a/app.py +++ b/app.py @@ -154,7 +154,7 @@ class WebPushService(): ) # "because sometimes that's what I had to do to make it work!" - Matthew time.sleep(1) - return {"success": result["status_code"] == 201, "message": result.text, "result": result} + return {"success": result.status_code == 201, "message": result.text, "result": result} except WebPushException as ex: now = datetime.datetime.now().isoformat()