.
This commit is contained in:
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user