chenjunkai 6 years ago
parent
commit
b1d7f5c580
1 changed files with 1 additions and 1 deletions
  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')