Skip to content

Commit e64cdc7

Browse files
zibuyu1995oucb
authored andcommitted
fix(overview): fix admin user device count chart
1 parent be09bbc commit e64cdc7

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

server/app/services/base/views/overview.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,8 @@ def overview_devices_count():
5151
time_devices_count = db.session \
5252
.query(func.to_char(model.countTime, time_format),
5353
func.sum(model.deviceCount)) \
54-
.filter(model.countTime > start_time, model.tenantID == g.tenant_uid) \
54+
.filter_tenant(tenant_uid=g.tenant_uid) \
55+
.filter(model.countTime > start_time) \
5556
.group_by(func.to_char(model.countTime, time_format)) \
5657
.order_by(func.to_char(model.countTime, time_format)).all()
5758
devices_count_dict = dict(time_devices_count)

0 commit comments

Comments
 (0)