Browse Source

fix another dict/attribute problem

master
Trent Larson 11 months ago
parent
commit
a466968de4
  1. 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 # "because sometimes that's what I had to do to make it work!" - Matthew
time.sleep(1) 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: except WebPushException as ex:
now = datetime.datetime.now().isoformat() now = datetime.datetime.now().isoformat()

Loading…
Cancel
Save