Checklist / main.py

Commit History

Fix template ID mismatch - Support both 'default' and 'default-audit-checklist' IDs - Use existing template in database - All CRUD operations now work with existing template
1bb5c06

Ali2206 commited on

Add detailed logging to debug template creation
aa47cce

Ali2206 commited on

Ensure template exists before all CRUD operations - Add ensure_default_template_exists to all endpoints - Template auto-created on any operation - Fixes 404 errors when template doesn't exist
86e3cc6

Ali2206 commited on

Auto-create default template on server startup - Add ensure_default_template_exists function - Template automatically created if not found - No manual script execution needed
66c8fc5

Ali2206 commited on

Convert to shared checklist system - All users can edit the same template - Add template-specific CRUD endpoints - Remove user-specific checklist requirement - Collaborative editing for all users
26a92dc

Ali2206 commited on

Fix CRUD endpoints with proper MongoDB queries and validation
bce5673

Ali2206 commited on

Fix delete item API MongoDB query - Fix sections.$.items to sections.$[].items for proper array update
505bbe6

Ali2206 commited on

Add CRUD APIs for checklist items and sections - Add item management (create, update, delete) - Add section management (create, delete) - Implement real-time database updates - Add comprehensive error handling
444243b

Ali2206 commited on

Add dynamic checklist template system - Added checklist template storage in database - Created endpoint to fetch default template - Updated frontend to load template from database - Added script to populate default template - Removed hardcoded checklist structure
5069021

Ali2206 commited on

Fix duplicate save issue and improve image handling - Updated backend to prevent duplicate entries - Fixed MongoDB immutable _id field error - Added comprehensive logging for debugging - Improved image capture and storage functionality
d7e0738

Ali2206 commited on