Skip to content

Commit

Permalink
regex depends on this being a dash
Browse files Browse the repository at this point in the history
  • Loading branch information
KastanDay authored Dec 11, 2023
1 parent bd73036 commit 2a6f4b2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ai_ta_backend/web_scrape.py
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ def ingest_file(self, key, course_name, path_name, base_url):
print("Writing", key[2] ,"to temp file")
temp_file.write(key[1])
temp_file.seek(0)
path_name = str(uuid.uuid4()) + '_' + path_name
path_name = str(uuid.uuid4()) + '-' + path_name
print("path name in webscrape: ", path_name)
s3_upload_path = "courses/"+ course_name + "/" + path_name + key[2]
with open(temp_file.name, 'rb') as f:
Expand Down

0 comments on commit 2a6f4b2

Please sign in to comment.