chenjunkai vor 6 Jahren
Ursprung
Commit
508b80671a
1 geänderte Dateien mit 2 neuen und 0 gelöschten Zeilen
  1. 2 0
      Controller/shareUserPermission.py

+ 2 - 0
Controller/shareUserPermission.py

@@ -65,6 +65,8 @@ class searchUserView(View):
                     device_Info_list.append(device_Info_dict)
                     device_Info_dict = {}
                 sqlList[0]['device_info'] = device_Info_list
+            else:
+                sqlList[0]['device_info'] = []
             if sqlList[0]['fields']['username'] is None:
                 sqlList[0]['fields']['username'] = ''
             if sqlList[0]['fields']['userEmail'] is None: