From f4f501def509dde8ee6d0fcedb18f972b3246421 Mon Sep 17 00:00:00 2001 From: Vivek Santayana Date: Fri, 19 Aug 2022 13:24:54 +0100 Subject: [PATCH] Deleted redundant line --- ref-test/app/models/test.py | 1 - 1 file changed, 1 deletion(-) 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()