From 38fc1277768af1d2dccca514d2382c95d4b711b2 Mon Sep 17 00:00:00 2001 From: Phaeton <808865+Phaeton@users.noreply.github.com> Date: Wed, 14 Aug 2024 16:02:31 -0400 Subject: [PATCH] Improve logging, remove runs for image only PRs (#537) --- .github/workflows/check_categories.yaml | 1 - scripts/export_categories.py | 6 ++++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/check_categories.yaml b/.github/workflows/check_categories.yaml index 8b0817f8..aa36810d 100644 --- a/.github/workflows/check_categories.yaml +++ b/.github/workflows/check_categories.yaml @@ -6,7 +6,6 @@ on: - "plane-alert-db.csv" - "plane-alert-pia.csv" - "plane-alert-ukraine.csv" - - "plane_images.csv" jobs: checkCategories: diff --git a/scripts/export_categories.py b/scripts/export_categories.py index 99024143..a8234e49 100644 --- a/scripts/export_categories.py +++ b/scripts/export_categories.py @@ -20,7 +20,8 @@ .reset_index(drop=True) ) logging.info(f"Total Categories Count: ({category_unique_df.shape[0]}).") - + logging.info("Creating the plane-alert-categories.csv file.") + category_unique_df.to_csv( "plane-alert-categories.csv", mode="wb", @@ -28,4 +29,5 @@ header=True, encoding="utf8", lineterminator="\n", - ) \ No newline at end of file + ) + logging.info("File created successfully!") \ No newline at end of file