Skip to content

Commit

Permalink
f-string bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Edouard Bourque committed Apr 16, 2024
1 parent fe5075f commit 9c3a22b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion clashstats/clanranking/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ def clanranking(request, clantag):
if Members.objects.filter(tag=rawb[battint]['team'][0]['tag'][1:]).exists() and Members.objects.filter(tag=rawb[battint]['opponent'][0]['tag'][1:]).exists() and Clans.objects.filter(tag=rawb[battint]['team'][0]['clan']['tag']).exists() and Clans.objects.filter(tag=rawb[battint]['opponent'][0]['clan']['tag']).exists() and Battles.objects.filter(id = f'{rawb[battint]["battleTime"]}-{rawb[battint]["opponent"][0]["tag"][1:]}-{rawb[battint]["team"][0]["tag"][1:]}').exists() == False:
rawbattles = rawb[battint]
Battles.objects.update_or_create(
id = f'{rawbattles['battleTime']}-{rawbattles['team'][0]['tag'][1:]}-{rawbattles['opponent'][0]['tag'][1:]}',
id = f"{rawbattles['battleTime']}-{rawbattles['team'][0]['tag'][1:]}-{rawbattles['opponent'][0]['tag'][1:]}",
battleTime = rawbattles['battleTime'],
type = rawbattles['type'],
isLadderTournament = rawbattles['isLadderTournament'],
Expand Down

0 comments on commit 9c3a22b

Please sign in to comment.