Skip to content

Commit

Permalink
added comment to explain regex
Browse files Browse the repository at this point in the history
  • Loading branch information
DavidDudas-Intuitial committed Nov 16, 2024
1 parent bdbf88c commit f1e276c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion analytics/src/analytics/integrations/etldb/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ def get_sql_file_paths() -> dict[int, str]:
# get list of sorted filenames
filename_list = sorted(os.listdir(sql_file_directory))

# compile result
# execute file only if filename follows convention: 0000_summary_of_change.sql
pattern = re.compile(r"^\d\d\d\d_.+\.sql$")
for filename in filename_list:
# validate filename format
Expand Down

0 comments on commit f1e276c

Please sign in to comment.