project/kovalenko-SCRUM-110-database-holes-visibility #34
@@ -8,6 +8,7 @@ from sqlalchemy import (
|
|||||||
Integer,
|
Integer,
|
||||||
String,
|
String,
|
||||||
Float,
|
Float,
|
||||||
|
Boolean,
|
||||||
DateTime,
|
DateTime,
|
||||||
)
|
)
|
||||||
from sqlalchemy.sql import select
|
from sqlalchemy.sql import select
|
||||||
@@ -29,6 +30,7 @@ processed_agent_data = Table(
|
|||||||
Column("z", Float),
|
Column("z", Float),
|
||||||
Column("latitude", Float),
|
Column("latitude", Float),
|
||||||
Column("longitude", Float),
|
Column("longitude", Float),
|
||||||
|
Column("visible", Boolean),
|
||||||
Column("timestamp", DateTime),
|
Column("timestamp", DateTime),
|
||||||
)
|
)
|
||||||
|
|
||||||
@@ -80,6 +82,7 @@ def ProcessedAgentData_to_td(data: List[ProcessedAgentData]):
|
|||||||
"z": item.agent_data.accelerometer.z,
|
"z": item.agent_data.accelerometer.z,
|
||||||
"latitude": item.agent_data.gps.latitude,
|
"latitude": item.agent_data.gps.latitude,
|
||||||
"longitude": item.agent_data.gps.longitude,
|
"longitude": item.agent_data.gps.longitude,
|
||||||
|
"visible": True,
|
||||||
"timestamp": item.agent_data.timestamp,
|
"timestamp": item.agent_data.timestamp,
|
||||||
}
|
}
|
||||||
for item in data
|
for item in data
|
||||||
|
|||||||
Reference in New Issue
Block a user