update mp_upload_temperature

FFIB преди 3 години
родител
ревизия
cc9d383ffa
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      api/point_views.py

+ 1 - 1
api/point_views.py

@@ -121,7 +121,7 @@ def mp_upload_temperature(request):
121 121
     temperature = request.POST.get('temperature', '')
122 122
 
123 123
     try:
124
-        ipui = IsolationPointUserInfo.objects.get(userid=userid, status=True)
124
+        ipui = IsolationPointUserInfo.objects.get(user_id=userid, status=True)
125 125
     except IsolationPointUserInfo.DoesNotExist:
126 126
         ipui = None
127 127