Skip to content

Commit

Permalink
Update parse.py
Browse files Browse the repository at this point in the history
  • Loading branch information
aturret committed Nov 9, 2023
1 parent 8856633 commit f30d24b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/utils/parse.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,5 @@ def filename_reduction(filename: str) -> str:
"""
if len(filename) > 100:
pure_filename = filename.split('/')[-1].split('.')[0]
file_path = filename.replace(pure_filename, pure_filename[:100])
return file_path
file_path = filename.replace(pure_filename, pure_filename[100:])
return file_path

0 comments on commit f30d24b

Please sign in to comment.