]> www.average.org Git - loctrkd.git/blobdiff - loctrkd/common.py
storage: save both raw and rectified reports
[loctrkd.git] / loctrkd / common.py
index 81f8bb99c914644e55ba3274a4e756cb178fae49..941a93e008dbf793cad604d0df1fd86a81809b63 100644 (file)
@@ -106,11 +106,11 @@ class CoordReport(Report):
         self,
         *,
         devtime: str,
-        battery_percentage: int,
-        accuracy: float,
-        altitude: float,
-        speed: float,
-        direction: float,
+        battery_percentage: Optional[int],
+        accuracy: Optional[float],
+        altitude: Optional[float],
+        speed: Optional[float],
+        direction: Optional[float],
         latitude: float,
         longitude: float,
     ) -> None:
@@ -131,7 +131,7 @@ class HintReport(Report):
         self,
         *,
         devtime: str,
-        battery_percentage: int,
+        battery_percentage: Optional[int],
         mcc: int,
         mnc: int,
         gsm_cells: List[Tuple[int, int, int]],