Skip to content

Commit

Permalink
Fix duplicate addition of LTC: in case rescheduled
Browse files Browse the repository at this point in the history
  • Loading branch information
peregrineshahin committed Jul 6, 2024
1 parent 12981ff commit 4661693
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion server/fishtest/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -1192,7 +1192,9 @@ def tests_run(request):
if request.method == "POST":
try:
data = validate_form(request)
if is_sprt_ltc_data(data):
if is_sprt_ltc_data(data) and not data["info"].lower().startswith(
("ltc", "vltc", "[vltc", "[vvltc")
):
data["info"] = "LTC: " + data["info"]
run_id = request.rundb.new_run(**data)
run = request.rundb.get_run(run_id)
Expand Down

0 comments on commit 4661693

Please sign in to comment.