Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve logging of categories checks, remove workflow runs for image only PRs #537

Merged
merged 1 commit into from
Aug 14, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion .github/workflows/check_categories.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ on:
- "plane-alert-db.csv"
- "plane-alert-pia.csv"
- "plane-alert-ukraine.csv"
- "plane_images.csv"

jobs:
checkCategories:
Expand Down
6 changes: 4 additions & 2 deletions scripts/export_categories.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,14 @@
.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",
index=False,
header=True,
encoding="utf8",
lineterminator="\n",
)
)
logging.info("File created successfully!")