Skip to content
This repository has been archived by the owner on Mar 11, 2024. It is now read-only.

Commit

Permalink
Merge pull request #11 from Dante0909/fpgachafix
Browse files Browse the repository at this point in the history
fix lb6 gacha fp
  • Loading branch information
O-Isaac authored Aug 10, 2023
2 parents 1eec9d8 + 161b594 commit 79676f7
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions libs/GetSubGachaId.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,15 @@ def GetGachaSubIdFP(region):
response = requests.get(f"https://git.atlasacademy.io/atlasacademy/fgo-game-data/raw/branch/{region}/master/mstGachaSub.json");
gachaList = json.loads(response.text)
timeNow = GetTimeStamp()

priority = 0
goodGacha = {}
for gacha in gachaList:
openedAt = gacha["openedAt"]
closedAt = gacha["closedAt"]

if openedAt <= timeNow & timeNow <= closedAt:
return str(gacha["id"])
p = int(gacha["priority"])
if(p > priority):
priority = p
goodGacha = gacha
return str(goodGacha["id"])

0 comments on commit 79676f7

Please sign in to comment.