This commit is contained in:
Ross
2021-08-01 12:25:36 +01:00
parent 1ddcf4b5b2
commit 780704d242
+2
View File
@@ -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))