anand
10/26/2021, 5:37 AManand
10/26/2021, 6:17 AMJ0
10/26/2021, 5:49 PMJ0
10/26/2021, 5:50 PMJ0
10/26/2021, 5:50 PManand
10/26/2021, 5:52 PMTito
10/26/2021, 8:36 PMsupabase.table('project_images').delete().filter(
'project_id', 'eq', project_id).execute()
and I am receiving:
2021-10-26 17:06:41,402:ERROR - Traceback (most recent call last):
File "/Users/titogarrido/Documents/Projetos/paint3/minination/minination-image-api/./main.py", line 363, in delete_project
supabase.table('project_images').delete().filter(
File "/Users/titogarrido/Documents/Projetos/paint3/minination/minination-image-api/venv/lib/python3.9/site-packages/supabase/lib/query_builder.py", line 33, in _execute_monkey_patch
"data": response.json(),
File "/Users/titogarrido/Documents/Projetos/paint3/minination/minination-image-api/venv/lib/python3.9/site-packages/requests/models.py", line 900, in json
return complexjson.loads(self.text, **kwargs)
File "/usr/local/Cellar/python@3.9/3.9.7_1/Frameworks/Python.framework/Versions/3.9/lib/python3.9/json/__init__.py", line 346, in loads
return _default_decoder.decode(s)
File "/usr/local/Cellar/python@3.9/3.9.7_1/Frameworks/Python.framework/Versions/3.9/lib/python3.9/json/decoder.py", line 337, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "/usr/local/Cellar/python@3.9/3.9.7_1/Frameworks/Python.framework/Versions/3.9/lib/python3.9/json/decoder.py", line 355, in raw_decode
raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
but I can't understand what I did wrong on this call... any clue?Tito
10/26/2021, 8:45 PMdreinon
10/27/2021, 12:03 AMdreinon
10/27/2021, 12:04 AMsupabase.table('project_images').delete().eq('project_id', str(project_id)).execute()
dreinon
10/27/2021, 2:04 AManand
10/27/2021, 4:36 AManand
10/27/2021, 4:38 AManand
10/27/2021, 4:38 AMDeleted User
10/27/2021, 5:19 AManand
10/27/2021, 6:57 AMdreinon
10/27/2021, 9:22 AMdreinon
10/27/2021, 9:22 AManand
10/27/2021, 11:24 AManand
10/27/2021, 11:24 AMdreinon
10/27/2021, 11:37 AMDeleted User
10/27/2021, 12:35 PMdreinon
10/27/2021, 3:06 PManand
10/28/2021, 1:42 PMSSardorf
11/02/2021, 7:12 AManand
11/02/2021, 1:27 PMSSardorf
11/02/2021, 3:20 PMJ0
11/02/2021, 5:47 PMMattyfaz
11/05/2021, 12:24 AMpython
data = supabase.table("test").select("*").order('id', { "ascending": False }).limit(1).execute()
But no luck (works when I remove the .order()
).anand
11/05/2021, 4:17 AM.order
takes different parameters in postgrest-py I think; to get it in descending order you'd do .order('id', desc=True)