Skip to content

Commit

Permalink
fix(chart): chart data display error
Browse files Browse the repository at this point in the history
  • Loading branch information
zibuyu1995 authored and CrazyWisdom committed Jul 9, 2019
1 parent b1120ab commit 0e46893
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/app/services/device_data/views/charts.py
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ def device_event_to_dict(device_event):
if value.get('time'):
ts = value.get('time')
if len(str(ts)) == 10:
item['msgTime'] = format_timestamp(ts, current_app.config['TIMEZONE'])
event_dict['msgTime'] = format_timestamp(ts, current_app.config['TIMEZONE'])
event_dict['value'] = value.get('value')
else:
event_dict['value'] = value
Expand Down

0 comments on commit 0e46893

Please sign in to comment.