.
This commit is contained in:
@@ -216,12 +216,9 @@ class Long(models.Model):
|
||||
url= "{0}longs/questions/{1}.json".format(settings.MEDIA_URL, question_id)
|
||||
|
||||
timestamp = timezone.now()
|
||||
print("QID0", self.question_json_id)
|
||||
|
||||
self.question_json_id += 1
|
||||
|
||||
print("QID", self.question_json_id)
|
||||
|
||||
with open(path, "w+") as f:
|
||||
|
||||
# We manually create the json for long questions to reducem memroy usade
|
||||
@@ -258,7 +255,6 @@ class Long(models.Model):
|
||||
|
||||
f.write('"image_titles" : {} }}'.format(json.dumps(image_titles)))
|
||||
|
||||
print("QID2", self.question_json_id)
|
||||
|
||||
self.json_creation_time = timestamp
|
||||
self.save()
|
||||
|
||||
Reference in New Issue
Block a user