From 780704d242141e3f747160ba43a5ba65c772ce8a Mon Sep 17 00:00:00 2001 From: Ross Date: Sun, 1 Aug 2021 12:25:36 +0100 Subject: [PATCH] . --- longs/models.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/longs/models.py b/longs/models.py index 64071d36..8132e191 100644 --- a/longs/models.py +++ b/longs/models.py @@ -221,6 +221,7 @@ class Long(models.Model): with open(path, "w+") as f: + print("start writing file") # We manually create the json for long questions to reducem memroy usade f.write("""{{ "title": "{}", @@ -238,6 +239,7 @@ class Long(models.Model): question_series = self.series.all() # Loop through longimage associations for i, series in enumerate(question_series): + print("gen series", i) #image_array = [] #for i in series.images.all(): # image_array.append(image_as_base64(i.image))