zhangdongming 3 жил өмнө
parent
commit
6fd2675aa5

+ 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