Skip to content

Commit

Permalink
fix(overview): fix admin user device count chart
Browse files Browse the repository at this point in the history
  • Loading branch information
zibuyu1995 authored and oucb committed Jun 20, 2019
1 parent be09bbc commit e64cdc7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion server/app/services/base/views/overview.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,8 @@ def overview_devices_count():
time_devices_count = db.session \
.query(func.to_char(model.countTime, time_format),
func.sum(model.deviceCount)) \
.filter(model.countTime > start_time, model.tenantID == g.tenant_uid) \
.filter_tenant(tenant_uid=g.tenant_uid) \
.filter(model.countTime > start_time) \
.group_by(func.to_char(model.countTime, time_format)) \
.order_by(func.to_char(model.countTime, time_format)).all()
devices_count_dict = dict(time_devices_count)
Expand Down

0 comments on commit e64cdc7

Please sign in to comment.