Merge pull request #292 from darksidelemm/testing

Regenerate iMet date-time string
pull/302/head
Mark Jessop 2020-07-27 07:29:31 +09:30 zatwierdzone przez GitHub
commit 8244c4403b
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 4AEE18F83AFDEB23
2 zmienionych plików z 3 dodań i 1 usunięć

Wyświetl plik

@ -17,7 +17,7 @@ except ImportError:
# MINOR - New sonde type support, other fairly big changes that may result in telemetry or config file incompatability issus.
# PATCH - Small changes, or minor feature additions.
__version__ = "1.3.2"
__version__ = "1.3.2.1-beta1"
# Global Variables

Wyświetl plik

@ -852,6 +852,8 @@ class SondeDecoder(object):
if self.imet_id == None:
self.imet_id = imet_unique_id(_telemetry, custom=self.imet_location)
# Re-generate the datetime string.
_telemetry['datetime'] = _telemetry['datetime_dt'].strftime("%Y-%m-%dT%H:%M:%SZ")
_telemetry['id'] = self.imet_id
_telemetry['station_code'] = self.imet_location