radames commited on
Commit
f69954f
1 Parent(s): 06e8b3b
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -211,9 +211,9 @@ async def sync_data():
211
  cursor = db.cursor()
212
  cursor.execute(
213
  "SELECT * from models")
214
- all_models = list(cursor.fetchall())
215
  models_no_images = []
216
- for model in all_models:
217
  model_data = json.loads(model['data'])
218
  images = model_data['images']
219
  filtered_images = [x for x in images if x is not None]
 
211
  cursor = db.cursor()
212
  cursor.execute(
213
  "SELECT * from models")
214
+ to_all_models = list(cursor.fetchall())
215
  models_no_images = []
216
+ for model in to_all_models:
217
  model_data = json.loads(model['data'])
218
  images = model_data['images']
219
  filtered_images = [x for x in images if x is not None]