mirror of
https://github.com/norohind/jubilant-system.git
synced 2026-11-18 02:12:22 +03:00
code style fixes
This commit is contained in:
3 files changed
+15
-15
No files matched your search
@@ -76,19 +76,19 @@ def detect_new_ru_squads(squad_info: dict, db_conn: sqlite3.Connection) -> None:
|
||||
else:
|
||||
motd = f"`{squad_info['motd']}`"
|
||||
previous_season_sum: int = squad_info['previous_season_trade_score'] + \
|
||||
squad_info['previous_season_combat_score'] + \
|
||||
squad_info['previous_season_exploration_score'] + \
|
||||
squad_info['previous_season_cqc_score'] + \
|
||||
squad_info['previous_season_bgs_score'] + \
|
||||
squad_info['previous_season_powerplay_score'] + \
|
||||
squad_info['previous_season_aegis_score']
|
||||
squad_info['previous_season_combat_score'] + \
|
||||
squad_info['previous_season_exploration_score'] + \
|
||||
squad_info['previous_season_cqc_score'] + \
|
||||
squad_info['previous_season_bgs_score'] + \
|
||||
squad_info['previous_season_powerplay_score'] + \
|
||||
squad_info['previous_season_aegis_score']
|
||||
current_season_sum: int = squad_info['current_season_trade_score'] + \
|
||||
squad_info['current_season_combat_score'] + \
|
||||
squad_info['current_season_exploration_score'] + \
|
||||
squad_info['current_season_cqc_score'] + \
|
||||
squad_info['current_season_bgs_score'] + \
|
||||
squad_info['current_season_powerplay_score'] + \
|
||||
squad_info['current_season_aegis_score']
|
||||
squad_info['current_season_combat_score'] + \
|
||||
squad_info['current_season_exploration_score'] + \
|
||||
squad_info['current_season_cqc_score'] + \
|
||||
squad_info['current_season_bgs_score'] + \
|
||||
squad_info['current_season_powerplay_score'] + \
|
||||
squad_info['current_season_aegis_score']
|
||||
message = f"""
|
||||
New russian squad with more then {MEMBERS_LOW_THRESHOLD} members: {squad_info['name']}
|
||||
members: {squad_info['memberCount']}
|
||||
|
||||
@@ -89,9 +89,9 @@ def discover(back_count: int = 0):
|
||||
TRIES_LIMIT_RETROSPECTIVELY: int = 5000
|
||||
TRIES_LIMIT_ON_THE_TIME: int = 5
|
||||
|
||||
def smart_tries_limit(squad_id: int) -> int: # something smarter but still have to be better
|
||||
def smart_tries_limit(_squad_id: int) -> int: # something smarter but still have to be better
|
||||
|
||||
if squad_id < 65000:
|
||||
if _squad_id < 65000:
|
||||
return TRIES_LIMIT_RETROSPECTIVELY
|
||||
|
||||
else:
|
||||
|
||||
@@ -506,7 +506,7 @@ def get_previous_thursday_severs_reboot_datetime() -> str:
|
||||
probably_last_server_reboot = datetime.datetime(last_thursday.year, last_thursday.month, last_thursday.day) + \
|
||||
datetime.timedelta(hours=7, minutes=30)
|
||||
|
||||
last_reboot_str: str = str()
|
||||
last_reboot_str: str
|
||||
|
||||
if offset_to_thursday == 0:
|
||||
# let's determine if now more then 10:30:00 utc
|
||||
|
||||
Reference in new issue
Block a user