From 2f1708bb938bb8ea89ed03265b0992f52e148a55 Mon Sep 17 00:00:00 2001 From: Andrew Grant Date: Sun, 30 May 2021 00:21:56 -0400 Subject: [PATCH] Fix trailing spaces in engine options breaking cutechess commands --- OpenBench/utils.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/OpenBench/utils.py b/OpenBench/utils.py index d4da2a4..dcebfa9 100644 --- a/OpenBench/utils.py +++ b/OpenBench/utils.py @@ -235,8 +235,8 @@ def createNewTest(request): test.author = request.user.username test.engine = request.POST['enginename'] test.source = request.POST['source'] - test.devoptions = request.POST['devoptions'] - test.baseoptions = request.POST['baseoptions'] + test.devoptions = request.POST['devoptions'].rstrip(' ') + test.baseoptions = request.POST['baseoptions'].rstrip(' ') test.devnetwork = request.POST['devnetwork'] test.basenetwork = request.POST['basenetwork'] test.bookname = request.POST['bookname']