Skip to content

Commit

Permalink
tmp fix for JP war banner
Browse files Browse the repository at this point in the history
  • Loading branch information
squaresmile committed Aug 28, 2024
1 parent de35990 commit 793b9d2
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions app/core/nice/war.py
Original file line number Diff line number Diff line change
Expand Up @@ -324,8 +324,9 @@ async def get_nice_war(

if raw_war.mstWar.flag & WarEntityFlag.MAIN_SCENARIO != 0:
last_war_id = await fetch.get_one(conn, MstConstant, "LAST_WAR_ID")
if raw_war.mstWar.id > 10000 or (
last_war_id and raw_war.mstWar.id <= last_war_id.value
if region == Region.JP or (
raw_war.mstWar.id > 10000
or (last_war_id and raw_war.mstWar.id <= last_war_id.value)
):
banner_template = "questboard_cap{:>03}"
banner_id = raw_war.mstWar.bannerId
Expand Down

0 comments on commit 793b9d2

Please # to comment.