- Replace `APScheduler` with `schedule` for task scheduling
- Implement a background thread to run the scheduler
- Add utility functions to manage and clear scheduled tasks
- Update task planning functions to use the new scheduling approach
- Improve error handling and logging for task scheduling
- Replace lambda functions with `partial` for better readability and maintainability
- Update job IDs to include `id_social` for better uniqueness and tracking
- Update `on_login` function in `functi.py` to store the user's linked social network in the state.
- This change ensures that the user's linked social network is available for use throughout the session.
- Removed unused import `invoke_long_callback` from `taipy.gui`
- Removed unused flags for various actions
- Simplified `post_generation_for_robot` function by removing unnecessary newlines and improving formatting
- Refactored `add_scheduling` function to improve readability and maintain thread safety
- Simplified LinkedIn posting logic by removing redundant code and improving formatting
- Updated LinkedIn API request to use fetched user identification data
- Removed unnecessary comments and improved code organization
**Refactor: Replace reset_flag with wait function for consistent delay handling**
- Added a new `wait` function to handle delays consistently
- Updated `invoke_long_callback` calls to use `wait` instead of `reset_flag` for delay
- Modified `reset_flag` function to accept a `success` parameter for better flag management
- Ensured consistent 2.0 second delay across all relevant functions
This refactor improves code consistency and maintainability by centralizing delay handling and updating the flag management process.
Replace threading.Timer with invoke_long_callback for flag resets in multiple functions to improve code maintainability and avoid potential issues with daemon threads. Add a new reset_flag function to handle all flag resets.
**Add scheduling and publishing flags and update app.py**
- Introduce flags for various actions in `functi.py` to manage state and ensure thread safety.
- Update `app.py` to include a new flag `has_navigated` and adjust logging configuration.
- Enhance the `add_scheduling` function to handle scheduling with improved time management and database interactions.
- Modify the post publishing function to include a reset mechanism for the publishing flag using a timer.
- Ensure the code is more robust and maintainable with clear state management.
- Update CSS styles for better readability and consistency
- Remove background image from .presentation class
- Refactor LinkedIn post publishing function for improved clarity
- Add new function for LinkedIn post generation
- Update authentication and navigation functions
- Remove unnecessary comments and whitespace
- Generated bytecode for line_db.py, containing functionalities for database management, user authentication, and data fetching.
- Generated bytecode for timing_lin.py, which includes scheduling and time manipulation features.