mirror of
https://github.com/projecthorus/sondehub-infra.git
synced 2025-04-22 09:40:57 +00:00
Support DFM serials directly
This commit is contained in:
parent
5de89a2462
commit
0a96d2dec7
@ -106,6 +106,10 @@ def processReports(data):
|
||||
# Use the reported serial number for RS41/RS92
|
||||
if "RS41" in recovery["radiosonde"]["type"] or "RS92" in recovery["radiosonde"]["type"]:
|
||||
serial = recovery["radiosonde"]["number"]
|
||||
# Remove D prefix for DFM
|
||||
elif "DFM" in recovery["radiosonde"]["type"]:
|
||||
serial = recovery["radiosonde"]["number"][1:]
|
||||
print(serial)
|
||||
# Try to find serial in SondeHub database for others
|
||||
else:
|
||||
serial = findSonde(recovery, lat, lon)
|
||||
|
Loading…
x
Reference in New Issue
Block a user