Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Add logic to update settings and delete related data based on s…
…erver type The code in `settings_api.py` was modified to handle updates to the "server_type" setting. When the "server_type" is updated, related data in the `Libraries`, `Users`, `Invitations`, and `Requests` tables is deleted. Additionally, if the "server_type" is changed to "plex", specific records in the `Requests` table are deleted. refactor: Rename functions related to user synchronization In `users_api.py`, the functions `global_sync_users` and `global_delete_user` were renamed to `global_sync_users_to_media_server` and `global_delete_user_from_media_server`, respectively. The functionality of these functions remains the same. fix: Handle creation of webhooks in webhooks_api.py The code in `webhooks_api.py` was modified to properly create a webhook object using the request form data. The created webhook now includes the creation timestamp and is returned as a response. fix: Update function names in scheduler.py In `scheduler.py`, the functions `global_delete_user` and `global_sync_users` were renamed to `global_delete_user_from_media_server` and `global_sync_users_to_media_server`, respectively. These function names were updated to match the renamed functions in `users_api.py`. misc: Remove unnecessary print statements from plex.py In `plex.py`, unnecessary print statements were removed from the `delete_plex_user` function. These print statements were used for debugging purposes and are not important for regular execution.
- Loading branch information