Browse Source

Chatbot Storage path fix

donzito 2 năm trước cách đây
mục cha
commit
1552c7b29d
1 tập tin đã thay đổi với 1 bổ sung2 xóa
  1. 1 2
      chatbot/main.py

+ 1 - 2
chatbot/main.py

@@ -79,8 +79,7 @@ class Chatbot():
             })
 
         else:
-            # blob_dir = 'docs/'
-            blobs = self.media_storage.list(self.storage_path + '/' + blob_dir)
+            blobs = self.media_storage.list(self.storage_path + '/')
             for blob in blobs:
                 text = blob.download_as_bytes().decode('utf-8')
                 if len(text)>0: