Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
fix name
Browse files
app.py
CHANGED
@@ -211,9 +211,9 @@ async def sync_data():
|
|
211 |
cursor = db.cursor()
|
212 |
cursor.execute(
|
213 |
"SELECT * from models")
|
214 |
-
|
215 |
models_no_images = []
|
216 |
-
for model in
|
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]
|