Explorar o código

view_password when '' fix

chenjunkai %!s(int64=6) %!d(string=hai) anos
pai
achega
845cf612cb
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      Controller/EquipmentManager.py

+ 1 - 1
Controller/EquipmentManager.py

@@ -296,7 +296,7 @@ def addInterface(request):
     UID = request_dict.get('UID', None)
     NickName = request_dict.get('NickName', None)
     View_Account = request_dict.get('View_Account', None)
-    View_Password = request_dict.get('View_Password', None)
+    View_Password = request_dict.get('View_Password', '')
     Type = request_dict.get('Type', None)
     ChannelIndex = request_dict.get('ChannelIndex', None)
     if all([UID, NickName, View_Account, Type, ChannelIndex]):