Skip to content

fix: null-check rnd.name before slugify in download_results_csv#544

Open
ayushshukla1807 wants to merge 1 commit into
hatnote:masterfrom
ayushshukla1807:fix/slugify-null-check-in-download-results-csv
Open

fix: null-check rnd.name before slugify in download_results_csv#544
ayushshukla1807 wants to merge 1 commit into
hatnote:masterfrom
ayushshukla1807:fix/slugify-null-check-in-download-results-csv

Conversation

@ayushshukla1807
Copy link
Copy Markdown

Fixes #542.

slugify(rnd.name, ...) raises AttributeError if rnd.name is None. Added a null-guard with a sensible fallback (unnamed-round).

Also replaced colons in isoformat() output with dashes since colons in filenames cause issues on Windows/macOS when downloading the CSV.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

download_results_csv uses slugify without null-check on rnd.name

1 participant