Skip to content

Commit

Permalink
Fix occtonet datetime
Browse files Browse the repository at this point in the history
  • Loading branch information
corradio committed Aug 15, 2018
1 parent f4872b2 commit 3cc8be4
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions parsers/occtonet.py
Original file line number Diff line number Diff line change
Expand Up @@ -131,8 +131,10 @@ def fetch_exchange(zone_key1='JP-TH', zone_key2='JP-TK', session=None,
df['sortedZoneKeys'] = sortedZoneKeys
df = df[['source', 'datetime', 'netFlow', 'sortedZoneKeys']]

return df.to_dict('records')

results = df.to_dict('records')
for result in results:
result['datetime'] = result['datetime'].to_pydatetime()
return results


def get_cookies(session=None):
Expand Down

0 comments on commit 3cc8be4

Please sign in to comment.