fix another dict/attribute problem
This commit is contained in:
2
app.py
2
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()
|
||||
|
||||
Reference in New Issue
Block a user