From 919538f873aa9c41653ab954481701ee3cb9fae2 Mon Sep 17 00:00:00 2001
From: Ruben Young On <r.d.youngon@student.tudelft.nl>
Date: Sun, 19 May 2019 12:50:33 +0000
Subject: [PATCH] =?UTF-8?q?Delete=20=EF=80=BAq?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 "\357\200\272q" | 24 ------------------------
 1 file changed, 24 deletions(-)
 delete mode 100644 "\357\200\272q"

diff --git "a/\357\200\272q" "b/\357\200\272q"
deleted file mode 100644
index 857f1b12..00000000
--- "a/\357\200\272q"
+++ /dev/null
@@ -1,24 +0,0 @@
-diff --git a/zesje/api/feedback.py b/zesje/api/feedback.py
-index 0ed472b..686afb5 100644
---- a/zesje/api/feedback.py
-+++ b/zesje/api/feedback.py
-@@ -140,14 +140,11 @@ class Feedback(Resource):
-         db.session.commit()
- 
-         # Delete mc_options associated with this feedback option
--        if fb.mc_option:
-+        if fb.mc_option and fb.problem.exam.finalized:
-+            return dict(status=401, message='Cannot delete feedback option'
-+                                            + ' attached to a multiple choice option in a finalized exam.'), 401
- 
--            # Check if the exam with this feedback option
--            if fb.problem.exam.finalized:
--                return dict(status=401, message='Cannot delete feedback option'
--                                                + ' attached to a multiple choice option in a finalized exam.'), 401
--
--            db.session.delete(fb.mc_option)
--            db.session.commit()
-+        db.session.delete(fb.mc_option)
-+        db.session.commit()
- 
-         return dict(status=200, message=f"Feedback option with id {feedback_id} deleted."), 200
-- 
GitLab