Merge pull request #54 from SemjonKerner/fixup_is_subbed

Fixup notification checkbox
This commit is contained in:
Adam Saudagar 2021-03-29 01:13:15 +05:30 committed by GitHub
commit 4dac4256a9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -53,7 +53,7 @@ def register_user():
@fallback(None)
def send_notification(message):
if not is_subbed():
if not is_subbed()[0]:
return False
body = {"uid": config.get("uid"), "message": message, "apiversion":apiversion}
@ -63,7 +63,7 @@ def send_notification(message):
@uses_session
@fallback(None)
def send_hole_deplete(fish_caught, hole_time, fish_times):
if not is_subbed():
if not is_subbed()[0]:
return False
hole_data = {