I tried running these methods to filter a table between a date range. I tried using the date in string format "yyyy-mm-dd" as well as in datetime format.
as well as
sd = "2022-10-01"
sd = datetime.strptime(sd, '%Y-%m-%d')
supabase.table("table").gte("date", sd).query()
Both returned:
UnexpectedValueTypeError: Expected type int for: val
Maybe I should convert this date into an int, but this seems irrational to me, since in 5 years of exp I never had to do that even though I am not a DataBase/SQL expert ? If so, how ?
I tried running these methods to filter a table between a date range. I tried using the date in string format "yyyy-mm-dd" as well as in datetime format.
So I tried:
sd = "2022-10-01" supabase.table("table").gte("date", sd).query()
as well as sd = "2022-10-01" sd = datetime.strptime(sd, '%Y-%m-%d') supabase.table("table").gte("date", sd).query()
Both returned:
UnexpectedValueTypeError: Expected type int for:
val
Maybe I should convert this date into an int, but this seems irrational to me, since in 5 years of exp I never had to do that even though I am not a DataBase/SQL expert ? If so, how ?