yashxx07 commited on
Commit
97b207f
·
verified ·
1 Parent(s): f8ee914

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +1 -4
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")