chenjunkai 7 년 전
부모
커밋
b1d7f5c580
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      Controller/OTAEquipment.py

+ 1 - 1
Controller/OTAEquipment.py

@@ -495,7 +495,7 @@ def getNewVerInterface(request):
         response.lang = tko.lang
         if tko.code == 0:
             try:
-                if lang:
+                if lang is not None and lang != '':
                     equipmentValid = Equipment_Version.objects.filter(code=code, status=1, lang=lang).order_by('-data_joined')
                 else:
                     equipmentValid = Equipment_Version.objects.filter(code=code, status=1).order_by('-data_joined')