Compare commits

..

1 Commits

Author SHA1 Message Date
ІМ-24 Владислав Коваленко eca98c4469 fix: actually use session variable in websocket GET
Component testing / Hub testing (push) Successful in 23s
Component testing / Store testing (push) Successful in 24s
Component testing / Integration smoke testing (push) Successful in 2m42s
2026-03-26 16:52:00 +00:00
+1 -1
View File
@@ -49,7 +49,7 @@ async def websocket_endpoint(websocket: WebSocket, user_id: int):
# send already available data
r = processed_agent_data.select().order_by(processed_agent_data.c.timestamp)
session = SessionLocal()
stored_data = SessionLocal().execute(r).fetchall()
stored_data = session.execute(r).fetchall()
session.close()
jsonable_data = [{c.name: getattr(i, c.name) for c in processed_agent_data.columns} for i in stored_data]