Skip to content

Commit

Permalink
prefetch that oops
Browse files Browse the repository at this point in the history
  • Loading branch information
catgirlinspace committed Jul 19, 2024
1 parent 68b87b5 commit f265907
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion battles/tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ def user_request_data_export(user: User | int):
user.data_export_pending = False
user.save()

battles = user.battles.with_prefetch().order_by('-played_time')
battles = user.battles.with_prefetch(True).order_by('-played_time')

battle_array = []

Expand Down

0 comments on commit f265907

Please sign in to comment.