.
This commit is contained in:
@@ -221,6 +221,7 @@ class Long(models.Model):
|
|||||||
|
|
||||||
with open(path, "w+") as f:
|
with open(path, "w+") as f:
|
||||||
|
|
||||||
|
print("start writing file")
|
||||||
# We manually create the json for long questions to reducem memroy usade
|
# We manually create the json for long questions to reducem memroy usade
|
||||||
f.write("""{{
|
f.write("""{{
|
||||||
"title": "{}",
|
"title": "{}",
|
||||||
@@ -238,6 +239,7 @@ class Long(models.Model):
|
|||||||
question_series = self.series.all()
|
question_series = self.series.all()
|
||||||
# Loop through longimage associations
|
# Loop through longimage associations
|
||||||
for i, series in enumerate(question_series):
|
for i, series in enumerate(question_series):
|
||||||
|
print("gen series", i)
|
||||||
#image_array = []
|
#image_array = []
|
||||||
#for i in series.images.all():
|
#for i in series.images.all():
|
||||||
# image_array.append(image_as_base64(i.image))
|
# image_array.append(image_as_base64(i.image))
|
||||||
|
|||||||
Reference in New Issue
Block a user