Spaces:
Running
Running
Update main.py
Browse files
main.py
CHANGED
|
@@ -109,10 +109,7 @@ async def root(item: Item):
|
|
| 109 |
|
| 110 |
|
| 111 |
async def insert_image(url , id):
|
| 112 |
-
data, count = await supabase.table('news')
|
| 113 |
-
.update({'image_url': url})
|
| 114 |
-
.eq('id', id)
|
| 115 |
-
.execute()
|
| 116 |
|
| 117 |
|
| 118 |
@app.get("/extract-images")
|
|
|
|
| 109 |
|
| 110 |
|
| 111 |
async def insert_image(url , id):
|
| 112 |
+
data, count = await supabase.table('news').update({'image_url': url}).eq('id', id).execute()
|
|
|
|
|
|
|
|
|
|
| 113 |
|
| 114 |
|
| 115 |
@app.get("/extract-images")
|