]> www.average.org Git - loctrkd.git/blobdiff - gps303/opencellid.py
Multiprotocol support in zmq messages and storage
[loctrkd.git] / gps303 / opencellid.py
index 90a8a74bc78d7c426bb75e9a92d79b37a8babb1a..7b6e41306cf3973471d610403d693084f5aa0917 100644 (file)
@@ -64,7 +64,7 @@ if __name__.endswith("__main__"):
     c.execute(
         """select tstamp, packet from events
             where proto in (?, ?)""",
-        (WIFI_POSITIONING.PROTO, WIFI_OFFLINE_POSITIONING.PROTO),
+        (proto_name(WIFI_POSITIONING), proto_name(WIFI_OFFLINE_POSITIONING)),
     )
     init({"opencellid": {"dbfn": sys.argv[2]}})
     for timestamp, packet in c: