Skip to content

Commit

Permalink
Remove some dead code in tests_modify (views.py).
Browse files Browse the repository at this point in the history
This should fix #1843 (comment)
  • Loading branch information
vdbergh committed Dec 3, 2023
1 parent 4306702 commit fe70528
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions server/fishtest/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -1107,15 +1107,6 @@ def tests_modify(request):
request.session.flash("Unable to modify another user's run!", "error")
return home(request)

existing_games = 0
for chunk in run["tasks"]:
existing_games += chunk["num_games"]
if "stats" in chunk:
stats = chunk["stats"]
total = stats["wins"] + stats["losses"] + stats["draws"]
if total < chunk["num_games"]:
chunk["pending"] = True

num_games = int(request.POST["num-games"])
if (
num_games > run["args"]["num_games"]
Expand Down

0 comments on commit fe70528

Please sign in to comment.