I am bad at debugging.
This commit is contained in:
parent
ca0e6c82cb
commit
eb6f5b876c
@ -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) }}):
|
||||
|
Loading…
Reference in New Issue
Block a user