align raw weather output files
This commit is contained in:
@@ -102,13 +102,15 @@ def raw_weather(context: dg.AssetExecutionContext) -> Any:
|
||||
now = datetime.now(tz=timezone.utc)
|
||||
date_str = now.strftime("%Y-%m-%d")
|
||||
time_str = now.strftime("%H:%M:%S")
|
||||
|
||||
latitude_str, longitude_str = partition_key[:5], partition_key[5:]
|
||||
yield dg.Output(
|
||||
data,
|
||||
metadata={
|
||||
"date": dg.MetadataValue.timestamp(now),
|
||||
"latitude": dg.MetadataValue.float(latitude),
|
||||
"longitude": dg.MetadataValue.float(longitude),
|
||||
"path_suffix": [date_str, time_str],
|
||||
"path": [APP, "raw", date_str, latitude_str, longitude_str, time_str],
|
||||
},
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user