From eb6f5b876c33ab1e0346b430e44c37fd33cad068 Mon Sep 17 00:00:00 2001 From: viveksantayana Date: Mon, 6 Dec 2021 23:19:13 +0000 Subject: [PATCH] I am bad at debugging. --- ref-test/admin/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ref-test/admin/views.py b/ref-test/admin/views.py index bdb223c..3c54905 100644 --- a/ref-test/admin/views.py +++ b/ref-test/admin/views.py @@ -418,7 +418,7 @@ def delete_test(): @views.route('/tests/close/', methods=['POST']) @admin_account_required @login_required -def delete_test(): +def close_test(): from main import db _id = request.get_json()['_id'] if db.tests.find_one_and_update({'_id': _id}, {'$set': {'expiry_date': datetime.today() - timedelta(days=1) }}):