Skip to content

Commit 3cc8be4

Browse files
committed
Fix occtonet datetime
1 parent f4872b2 commit 3cc8be4

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

parsers/occtonet.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -131,8 +131,10 @@ def fetch_exchange(zone_key1='JP-TH', zone_key2='JP-TK', session=None,
131131
df['sortedZoneKeys'] = sortedZoneKeys
132132
df = df[['source', 'datetime', 'netFlow', 'sortedZoneKeys']]
133133

134-
return df.to_dict('records')
135-
134+
results = df.to_dict('records')
135+
for result in results:
136+
result['datetime'] = result['datetime'].to_pydatetime()
137+
return results
136138

137139

138140
def get_cookies(session=None):

0 commit comments

Comments
 (0)