This commit is contained in:
李鹏宇
2026-03-16 17:18:30 +08:00
@@ -1161,8 +1161,12 @@ class AppletAttendance(Controller):
'current_read': clean_floats(record.current_read),
'current_meter': clean_floats(record.current_meter)
}
if record.archives_id.name not in code_list:
code_list.append(record.archives_id.name)
if type == 'water':
current_name = record.water_id.name if record.water_id else ''
else:
current_name = record.archives_id.name if record.archives_id else ''
if current_name and current_name not in code_list:
code_list.append(current_name)
result.append(tvalue)
return json.dumps(result, allow_nan=False)