diff --git a/mareabot/api/actv.py b/mareabot/api/actv.py index 3e99c3b..57aaef3 100644 --- a/mareabot/api/actv.py +++ b/mareabot/api/actv.py @@ -35,10 +35,10 @@ def get_actv(hight: int) -> (str, int): if hight >= 140: return H140, 140 - elif hight >= 130: + if hight >= 130: return H130, 130 - elif hight >= 120: + if hight >= 120: return H120, 120 - elif hight >= 95: + if hight >= 95: return H95, 95 return "", 0 diff --git a/mareabot/social/telegram_api.py b/mareabot/social/telegram_api.py index d90a302..077e442 100644 --- a/mareabot/social/telegram_api.py +++ b/mareabot/social/telegram_api.py @@ -19,8 +19,7 @@ def telegram_send(text: str, user: str) -> Tuple[int, bool]: logger.info(r.json()) if r.json()["ok"]: return r.json()["result"]["message_id"], True - else: - return None, False + return None, False def telegram_channel_send(text: str) -> Tuple[int, bool]: @@ -34,5 +33,4 @@ def telegram_channel_delete_message(message_id: int, chat: str = CHANNEL) -> boo logger.info(r.json()) if r.json()["ok"]: return True - else: - return False + return False