zhangdongming пре 2 месеци
родитељ
комит
4baad43dff
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      Controller/SysMsg.py

+ 1 - 1
Controller/SysMsg.py

@@ -205,7 +205,7 @@ class SysMsgView(View):
                     for uid_set_q in uid_set_qs:
                     for uid_set_q in uid_set_qs:
                         if uid_set_q['uid'] == sm_q['uid']:
                         if uid_set_q['uid'] == sm_q['uid']:
                             sm_q['devNickName'] = uid_set_q['nickname']
                             sm_q['devNickName'] = uid_set_q['nickname']
-                            sm_q['devType'] = int(uid_set_q['device_type'])
+                            sm_q['devType'] = uid_set_q['device_type']
                     data_res.append(sm_q)
                     data_res.append(sm_q)
             return response.json(0, {'data': data_res, 'count': count})
             return response.json(0, {'data': data_res, 'count': count})
         except Exception as e:
         except Exception as e: