Skip to content
Snippets Groups Projects
Commit 3fd0f6b1 authored by anikets's avatar anikets
Browse files

glob_path as .txt in upload html

parent 9a0a6b1d
No related branches found
No related tags found
No related merge requests found
......@@ -380,7 +380,7 @@ def v1_upload_raw_html():
with open(file_path, 'w', encoding='utf-8') as text_file:
text_file.write(text)
glob_path = r'./backend/storage/' + collection_id + r'/*.html'
glob_path = r'./backend/storage/' + collection_id + r'/*.txt'
for file_path in glob.glob(glob_path):
database.create_raw_text_file(collection_id, file_path)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment