Commit Graph

8 Commits

Author SHA1 Message Date
Nick Heppler
3afe292b23 fix: Ensure feature layer is truncated at the start of script execution
- Moved the call to the truncate function to always execute at the beginning of the main function.
- Ensured that the feature layer is cleared before loading data from a JSON file or fetching from the API.
2025-05-22 12:12:01 -04:00
Nick Heppler
cad8d64c23 feat: Add --reload flag to data synchronization script for loading JSON data
- Introduced a new command-line argument `--reload` to allow loading data from a specified JSON file.
- Updated `parse_arguments` to include the `--reload` flag.
- Modified `main` function to truncate the feature layer and load data from the JSON file when the flag is used.
- Enhanced documentation to reflect the new functionality and usage examples.
2025-05-22 11:25:41 -04:00
Nick Heppler
b7ca534211 feat: Add --test flag to fetch only the first page of results
- Introduced a new command-line argument `--test` to limit data fetching to the first page.
- Updated `parse_arguments` function to include the `--test` flag.
- Modified the pagination logic in the `main` function to break after the first page when `--test` is enabled.
- Enhanced documentation to reflect the new functionality and usage examples.
2025-05-22 10:27:36 -04:00
Nick Heppler
6f412348fe feat(logging): add dynamic log filenames and support for PURGE_DAYS cleanup. 2025-04-15 17:53:02 -04:00
Nick Heppler
b886a4636c log total script execution time in HH:MM:SS format. 2025-04-15 17:00:12 -04:00
Nick Heppler
01e0d16838 Only save the individual page files if the logging level is set to debug. 2025-04-01 19:15:33 -04:00
Nick Heppler
7f9d32424a Add debug logging messages. 2025-03-27 07:54:15 -04:00
Nick Heppler
6bbf29493c Add app.py script for fetching and syncing enforcement data with ArcGIS. 2025-03-26 12:09:09 -04:00