mirror of
https://github.com/norohind/jubilant-system-core.git
synced 2026-10-22 23:02:08 +03:00
Vanguards update workarounds
This commit is contained in:
2 files changed
+21
-1
No files matched your search
@@ -53,6 +53,24 @@ def insert_info_news(news_dict: dict | None, info_dict: dict) -> int:
|
||||
operation_id = allocate_operation_id(info_dict['squad_id'])
|
||||
info_dict['operation_id'] = operation_id
|
||||
|
||||
# Vanguards update workaround
|
||||
info_dict["online_count"] = 0
|
||||
info_dict["pending_count"] = 0
|
||||
info_dict["current_season_trade_score"] = 0
|
||||
info_dict["previous_season_trade_score"] = 0
|
||||
info_dict["current_season_combat_score"] = 0
|
||||
info_dict["previous_season_combat_score"] = 0
|
||||
info_dict["current_season_exploration_score"] = 0
|
||||
info_dict["previous_season_exploration_score"] = 0
|
||||
info_dict["current_season_cqc_score"] = 0
|
||||
info_dict["previous_season_cqc_score"] = 0
|
||||
info_dict["current_season_bgs_score"] = 0
|
||||
info_dict["previous_season_bgs_score"] = 0
|
||||
info_dict["current_season_powerplay_score"] = 0
|
||||
info_dict["previous_season_powerplay_score"] = 0
|
||||
info_dict["current_season_aegis_score"] = 0
|
||||
info_dict["previous_season_aegis_score"] = 0
|
||||
|
||||
db.execute(SQLRequests.insert_info, info_dict)
|
||||
|
||||
if news_dict is not None:
|
||||
|
||||
+3
-1
@@ -22,7 +22,9 @@ def update_squad(squad_id: int, suppress_absence=False) -> None | int:
|
||||
|
||||
else:
|
||||
# Then we got valid squad_info dict
|
||||
news_info = Queries.get_squad_news(squad_id)
|
||||
news_info = None # Queries.get_squad_news(squad_id)
|
||||
# since Vanguards update NEWS_ENDPOINT always returns 500 b'{"status":500,"message":"Internal Server Error","tag":"bbbdpzgnssvbp"}'
|
||||
|
||||
operation_id = DB.insert_info_news(news_info, squad_info)
|
||||
hook_system.notify_inserted(operation_id)
|
||||
|
||||
|
||||
Reference in new issue
Block a user