update get_screen_data

FFIB %!s(int64=3) %!d(string=hace) años
padre
commit
95e57711a5
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      api/eqpt_views.py

+ 1 - 1
api/eqpt_views.py

@@ -234,7 +234,7 @@ def get_screen_data(point=None, point_id=None):
234 234
     for eqpt in eqpts:
235 235
         status = eqpt.get('status')
236 236
         temperature = eqpt.get('temperature')
237
-        if temperature > settings.FEVER_TEMPERATURE:
237
+        if status == IsolationPointUserInfo.HAS_YET_UPLOAD and temperature > settings.FEVER_TEMPERATURE:
238 238
             eqpts_fever.append(eqpt)
239 239
         elif status == IsolationPointUserInfo.HAS_NOT_CONNECTED:
240 240
             eqpt['temperature'] = '-'