Skip to content

Commit 9c1f6b3

Browse files
committed
update log file paths in workflow and scraping scripts
1 parent 9845534 commit 9c1f6b3

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

.github/workflows/update-events-data.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,8 +106,8 @@ jobs:
106106
with:
107107
name: logs-${{ github.run_number }}
108108
path: |
109-
backend/logs/events_scraped.csv
110-
backend/logs/scraping.log
109+
backend/scraping/logs/events_scraped.csv
110+
backend/scraping/logs/scraping.log
111111
112112
- name: Generate static data file
113113
id: generate_static

backend/scraping/instagram_feed.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,8 +109,10 @@ def append_event_to_csv(
109109
added_to_db="success",
110110
club_type=None,
111111
):
112-
csv_file = Path(__file__).resolve().parent.parent / "logs" / "events_scraped.csv"
113-
csv_file.parent.mkdir(parents=True, exist_ok=True)
112+
logs_dir = Path(__file__).parent / "logs"
113+
logs_dir.mkdir(parents=True, exist_ok=True)
114+
csv_file = logs_dir / "events_scraped.csv"
115+
114116
file_exists = csv_file.exists()
115117

116118
dtstart = clean_datetime(event_data.get("dtstart"))

0 commit comments

Comments
 (0)