diff --git a/ref-test/app/models/test.py b/ref-test/app/models/test.py index 91d1448..811cb10 100644 --- a/ref-test/app/models/test.py +++ b/ref-test/app/models/test.py @@ -58,7 +58,6 @@ class Test(db.Model): return True, f'Test with code {self.get_code()} has been created.' def delete(self): - code = self.code if self.entries: return False, f'Cannot delete a test with submitted entries.' db.session.delete(self) db.session.commit()