zhangdongming 3 年之前
父节点
当前提交
6fd2675aa5
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      Object/UnicomObject.py

+ 1 - 1
Object/UnicomObject.py

@@ -266,7 +266,7 @@ class UnicomObjeect:
             device_usage_history_list = usage_history['data']['deviceUsageHistory']
             if device_usage_history_list:
                 for item in device_usage_history_list:
-                    if item['year'] != usage_year and item['month'] != usage_month:
+                    if item['year'] != usage_year or item['month'] != usage_month:
                         continue
                     flow_total_usage += item['flowTotalUsage']
         return flow_total_usage