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 7a5cc3a commit bd73036
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ai_ta_backend/aws.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ def upload_data_files_to_s3(course_name: str, localdir: str) -> Optional[List[st
def upload(myfile):
# get the last part of the path and append unique ID before it
directory, old_filename = os.path.split(myfile)
new_filename = str(uuid.uuid4()) + '_' + old_filename
new_filename = str(uuid.uuid4()) + '-' + old_filename
new_filepath = os.path.join(directory, new_filename)

s3_file = f"courses/{course_name}/{os.path.basename(new_filepath)}"
Expand Down

0 comments on commit bd73036

Please sign in to comment.