Added possibility to choose the time range in which bot will search test results
PRODX-37645
Change-Id: I360a4df3805f222879b70e505e9d2adde3a0a012
diff --git a/testrail_bot/control/views.py b/testrail_bot/control/views.py
index 0ebdf41..7a34327 100644
--- a/testrail_bot/control/views.py
+++ b/testrail_bot/control/views.py
@@ -45,7 +45,9 @@
else:
form = forms.TestRunForm()
- form.fields["timestamp"].initial = datetime.date.today()
+ form.fields["created_after"].initial = datetime.date.today() + \
+ datetime.timedelta(days=-3 * 30)
+ form.fields["created_before"].initial = datetime.date.today()
return render(request, "control/update_run.html", {"form": form})