Browse Source

修改addOrUpdate9

tanghongbin 4 năm trước cách đây
mục cha
commit
e667651d0e
1 tập tin đã thay đổi với 0 bổ sung10 xóa
  1. 0 10
      Controller/EquipmentManagerV3.py

+ 0 - 10
Controller/EquipmentManagerV3.py

@@ -65,16 +65,6 @@ class EquipmentManagerV3(View):
                 re_uid = re.compile(r'^[A-Za-z0-9]{20}$')
                 if re_uid.match(UID):
                     try:
-                        file_path = '/'.join((BASE_DIR, 'static/test.log'))
-                        file = open(file_path, 'a+')
-                        file.write(UID)
-                        file.write('\n')
-                        file.write(userID)
-                        file.write('\n')
-                        file.write(NickName)
-                        file.write('\n')
-                        file.flush()
-                        file.close()
 
                         asy = threading.Thread(target=ModelService.notify_alexa_add, args=(UID, userID, NickName))
                         asy.start()