tanghongbin пре 5 година
родитељ
комит
e6e26136e2
1 измењених фајлова са 4 додато и 2 уклоњено
  1. 4 2
      Controller/FileController.py

+ 4 - 2
Controller/FileController.py

@@ -317,9 +317,11 @@ class DownloadUIDFileView(View):
                 uid_values = uid_values[0:quantity]
                 uid_qs = uid_qs[0: quantity]
                 if fileType == 'txt':
-                    return self.download_txt(uid_values, uid_qs, order)
+                    # return self.download_txt(uid_values, uid_qs, order)
+                    # return self.download_excel(uid_values, order)
+                    return self.download_zip(uid_values, order)
                 elif fileType == 'excel':
-                    return self.download_excel(uid_values)
+                    return self.download_excel(uid_values, order)
                 else:
                     return response.json(444, 'fileType')
             else: