:art: iSort & Pycodestyle

huangqimin001 3 lat temu
rodzic
commit
b109cc6e25
2 zmienionych plików z 2 dodań i 3 usunięć
  1. 1 2
      api/eqpt_views.py
  2. 1 1
      api/point_views.py

+ 1 - 2
api/eqpt_views.py

@@ -48,7 +48,6 @@ def eqpt_onoff(request):
48 48
     except ThermometerEquipmentInfo.DoesNotExist:
49 49
         return response(ThermometerEquipmentStatusCode.THERMOMETER_EQUIPMENT_NOT_FOUND)
50 50
 
51
-
52 51
     if active == 0:
53 52
         try:
54 53
             ipui = IsolationPointUserInfo.objects.get(pk=eqpt.ipui_pk)
@@ -58,7 +57,7 @@ def eqpt_onoff(request):
58 57
             ipui.leave_at = tc.utc_datetime()
59 58
             ipui.status = False
60 59
             ipui.save()
61
-    
60
+
62 61
     eqpt.active_status = active
63 62
     eqpt.ipui_pk = 0
64 63
     eqpt.save()

+ 1 - 1
api/point_views.py

@@ -97,7 +97,7 @@ def bind_eqpt(request):
97 97
 
98 98
     eqpt.ipui_pks += [ipui.pk]
99 99
     eqpt.save()
100
-    
100
+
101 101
     ipui.eqpts += [macid]
102 102
     ipui.save()
103 103