|
@@ -51,7 +51,7 @@ class EquipmentManagerV3(View):
|
|
elif operation == 'fuzzyQuery':
|
|
elif operation == 'fuzzyQuery':
|
|
return self.do_fuzzy_query(userID, request_dict, response)
|
|
return self.do_fuzzy_query(userID, request_dict, response)
|
|
elif operation == 'mainUserDevice':
|
|
elif operation == 'mainUserDevice':
|
|
- return self.do_mainUserDevice(userID, request_dict, response)
|
|
|
|
|
|
+ return self.do_mainUserDevice( request_dict, response)
|
|
else:
|
|
else:
|
|
return response.json(414)
|
|
return response.json(414)
|
|
else:
|
|
else:
|
|
@@ -594,6 +594,6 @@ class EquipmentManagerV3(View):
|
|
|
|
|
|
def do_mainUserDevice(self, request_dict, response):
|
|
def do_mainUserDevice(self, request_dict, response):
|
|
vodPrimaryUserID = request_dict.get('vodPrimaryUserID')
|
|
vodPrimaryUserID = request_dict.get('vodPrimaryUserID')
|
|
- qs =Device_User.objects.filter(userID=vodPrimaryUserID).values('NickName', 'username', 'userEmail', 'phone')
|
|
|
|
|
|
+ qs = Device_User.objects.filter(userID=vodPrimaryUserID).values('NickName', 'username', 'userEmail', 'phone')
|
|
dvql = CommonService.qs_to_list(qs)
|
|
dvql = CommonService.qs_to_list(qs)
|
|
return response.json(0, dvql)
|
|
return response.json(0, dvql)
|