Fix: change timestamp column name to created_at
This commit is contained in:
parent
8878303cac
commit
f826028161
|
|
@ -55,7 +55,7 @@ async def get_plants_by_company(
|
||||||
log_response = db.table("solar_logs") \
|
log_response = db.table("solar_logs") \
|
||||||
.select("*") \
|
.select("*") \
|
||||||
.eq("plant_id", plant["id"]) \
|
.eq("plant_id", plant["id"]) \
|
||||||
.order("timestamp", desc=True) \
|
.order("created_at", desc=True) \
|
||||||
.limit(1) \
|
.limit(1) \
|
||||||
.execute()
|
.execute()
|
||||||
|
|
||||||
|
|
@ -119,7 +119,7 @@ async def get_plant_detail(
|
||||||
logs_response = db.table("solar_logs") \
|
logs_response = db.table("solar_logs") \
|
||||||
.select("*") \
|
.select("*") \
|
||||||
.eq("plant_id", plant_id) \
|
.eq("plant_id", plant_id) \
|
||||||
.order("timestamp", desc=True) \
|
.order("created_at", desc=True) \
|
||||||
.limit(10) \
|
.limit(10) \
|
||||||
.execute()
|
.execute()
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user