Parcourir la source

修改默认ota为en

chenjunkai il y a 6 ans
Parent
commit
2b77659894
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      Controller/OTAEquipment.py

+ 1 - 1
Controller/OTAEquipment.py

@@ -514,7 +514,7 @@ def getNewVerInterface(request):
                     equipmentValid = Equipment_Version.objects.filter(code=code, status=1, lang=lang).order_by(
                     equipmentValid = Equipment_Version.objects.filter(code=code, status=1, lang=lang).order_by(
                         '-data_joined')
                         '-data_joined')
                 else:
                 else:
-                    equipmentValid = Equipment_Version.objects.filter(code=code, status=1,lang=0).order_by('-data_joined')
+                    equipmentValid = Equipment_Version.objects.filter(code=code, status=1,lang='en').order_by('-data_joined')
             except Exception as e:
             except Exception as e:
                 return response.json(500, {'details': repr(e)})
                 return response.json(500, {'details': repr(e)})
             else:
             else: