Skip to content

Instantly share code, notes, and snippets.

@abrookins
Created August 7, 2020 00:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save abrookins/755530b2446ce65d56433f63aa6482b4 to your computer and use it in GitHub Desktop.
Save abrookins/755530b2446ce65d56433f63aa6482b4 to your computer and use it in GitHub Desktop.
In [8]: data = SiteStatsSchema().dump(stats)
In [9]: data
Out[9]:
{'meter_reading_count': 5,
'min_wh_generated': 1.0,
'last_reporting_time': '2020-07-31T15:08:45.109063',
'max_wh_generated': 22.0,
'max_capacity': 100.0}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment