Less nesting of timestamp data

This commit is contained in:
XANTRONIX 2025-03-01 12:38:46 -05:00
parent aa2b18f3dd
commit 4f27157438

View file

@ -56,13 +56,11 @@ class RawinsObs():
now = datetime.datetime.now(datetime.UTC)
return {
'timestamp': datetime.datetime(
year = now.year,
month = now.month,
day = day if day < 51 else day - 50
)
}
return datetime.datetime(
year = now.year,
month = now.month,
day = day if day < 51 else day - 50
)
def parse_surface_pressure(self, value: str):
if value[0:2] == '99':