diff --git a/fishy/gui/config_top.py b/fishy/gui/config_top.py index 51ede8b..c5ebcbf 100644 --- a/fishy/gui/config_top.py +++ b/fishy/gui/config_top.py @@ -58,7 +58,7 @@ def start_semifisher_config(gui: 'GUI'): gui.config.save_config() def toggle_sub(): - if web.is_subbed(config.get("uid"))[0]: + if web.is_subbed()[0]: if web.unsub(): gui._notify.set(0) else: diff --git a/fishy/web/web.py b/fishy/web/web.py index 42b7fc3..a3982a9 100644 --- a/fishy/web/web.py +++ b/fishy/web/web.py @@ -62,6 +62,9 @@ def send_notification(message): @uses_session @fallback(None) def send_hole_deplete(fish_caught, hole_time, fish_times): + if not is_subbed(): + return False + hole_data = { "fish_caught": fish_caught, "hole_time": hole_time,