Skip to content

Commit

Permalink
per FV
Browse files Browse the repository at this point in the history
  • Loading branch information
dinhlongviolin1 committed Jun 18, 2024
1 parent b1d1985 commit 97cad62
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions tools/frontend/hash_source.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,12 +51,10 @@ def hash_files_in_frontend_folder(frontend_folder):
continue
# Sort before looping to ensure consistent cache key
for file in sorted(files):
for ignore in ignore_file_name:
if ignore in file:
continue
for ignore in ignore_file_extension:
if file.endswith(ignore):
continue
if any(ignore in file for ignore in ignore_file_name):
continue
if any(file.endswith(ignore) for ignore in ignore_file_extension):
continue
file_path = os.path.join(root, file)
file_hash = hash_file(file_path)
file_hashes[file_path] = file_hash
Expand Down

0 comments on commit 97cad62

Please sign in to comment.