Skip to content

Commit 9a64321

Browse files
committed
fixing redundant snapshot date in comparison filename
1 parent 1ea35d6 commit 9a64321

File tree

3 files changed

+8
-4
lines changed

3 files changed

+8
-4
lines changed

.github/workflows/generate-files.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,9 @@ jobs:
5454
run: |
5555
mkdir -p snapshots_release/snapshot_2025-03-01
5656
echo "Copying snapshot data files for 2025-03-01..."
57-
find outputs/snapshots/2025-03-01 inputs/snapshots/2025-03-01 -type f -name "*.csv" -exec cp {} snapshots_release/snapshot_2025-03-01/ \; -exec echo "Copied: {}" \;
57+
find outputs/snapshots/2025-03-01 inputs/snapshots/2025-03-01 -type f -name "*.csv" \
58+
-exec cp {} snapshots_release/snapshot_2025-03-01/ \; \
59+
-exec echo "Copied: {}" \;
5860
for file in snapshots_release/snapshot_2025-03-01/*.csv; do
5961
mv "$file" "snapshots_release/2025-03-01_$(basename "$file")"
6062
done

main.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,8 @@ def main():
203203
'df_comp': si_ss_dict['si'],
204204
'base_name': f"{snapshot}_si",
205205
'comp_name':"si",
206-
'key_name':"fy_org_id_service_id"
206+
'key_name':"fy_org_id_service_id",
207+
'file_name':"si_comparison"
207208
}
208209
build_compare_file(si_compare_dict, config, snapshot)
209210

@@ -212,7 +213,8 @@ def main():
212213
'df_comp': si_ss_dict['ss'],
213214
'base_name': f"{snapshot}_ss",
214215
'comp_name':"ss",
215-
'key_name':"fy_org_id_service_id_std_id"
216+
'key_name':"fy_org_id_service_id_std_id",
217+
'file_name':"ss_comparison"
216218
}
217219
build_compare_file(ss_compare_dict, config, snapshot)
218220

src/comp.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
def build_compare_file(compare_dict,config,snapshot):
66

7-
df_name = f"{compare_dict['base_name']}_comparison"
7+
df_name = compare_dict['file_name']
88
out = compare(compare_dict)
99

1010
SNAPSHOT_ROOT_DIR= config["output_dir"] / "snapshots" / snapshot

0 commit comments

Comments
 (0)