rename send_hole_deplete to send_fish_caught

This commit is contained in:
Semjon Kerner 2021-05-07 09:59:18 +02:00
parent 0396ea3239
commit 699354cd0b
3 changed files with 3 additions and 3 deletions

View File

@ -52,7 +52,7 @@ def if_eso_is_focused(func):
def _sound_and_send_fishy_data():
if FishEvent.fishCaught > 0:
web.send_hole_deplete(FishEvent.fishCaught, time.time() - FishEvent.hole_start_time, FishEvent.fish_times)
web.send_fish_caught(FishEvent.fishCaught, time.time() - FishEvent.hole_start_time, FishEvent.fish_times)
FishEvent.fishCaught = 0
if FishEvent.sound:

View File

@ -1,2 +1,2 @@
from .urls import get_notification_page, get_terms_page
from .web import register_user, send_notification, send_hole_deplete, is_subbed, unsub, get_session, sub
from .web import register_user, send_notification, send_fish_caught, is_subbed, unsub, get_session, sub

View File

@ -62,7 +62,7 @@ def send_notification(message):
@uses_session
@fallback(None)
def send_hole_deplete(fish_caught, hole_time, fish_times):
def send_fish_caught(fish_caught, hole_time, fish_times):
hole_data = {
"fish_caught": fish_caught,
"hole_time": hole_time,