REPLIT ASSISTANT PROMPT: URGENT: Register closeout blueprint in Flask app and test contract marketplace API CURRENT STATE: ✅ Database schema updated (contracts table has VARCHAR(50) status, new columns for hours/closeout) ✅ Reviews table created for anonymous rating system ✅ closeout_routes.py created with all marketplace endpoints ✅ Test contract ready (Contract #1: status='pending_completion_review', worker_id=1, contractor_id=2) ❌ Closeout blueprint NOT registered in main Flask app FLASK APP STRUCTURE ANALYSIS: - Main app factory: app/__init__.py (uses create_app() pattern) - Entry points: run.py and main.py (both call create_app()) - Blueprint registration: register_blueprints() function in app/__init__.py - Existing blueprints: auth, marketplace, legal, safety, gamification (all registered with /api/ prefixes) REQUIRED CHANGES: 1. **Update app/__init__.py register_blueprints() function:** - Add import: `from .closeout_routes import closeout_bp` - Add registration: `app.register_blueprint(closeout_bp, url_prefix='/api/closeout')` 2. **Test the API endpoints work:** - /api/closeout/contracts/1/mark-complete (POST) - /api/closeout/contracts/1/contractor-review (POST) - /api/closeout/contracts/1/rate (POST) - /api/closeout/contracts/1/closeout-status (GET) 3. **Verify Contract #1 workflow:** - Worker (user_id=1) can mark work complete with hours - Contractor (user_id=2) can review/approve work - Both can submit anonymous ratings - Status transitions: pending_completion_review → completed_pending_rating → completed CONTEXT: This is the missing piece for a professional Australian construction marketplace. The contract closeout system includes: - Hours tracking when work is completed - Contractor review/approval workflow - Anonymous rating system (updates every 5 reviews for privacy) - Proper status transitions for contract lifecycle FILES TO MODIFY: - app/__init__.py (add blueprint registration) - Test with existing Contract #1 data GOALS: 1. Register the closeout blueprint properly in the Flask app 2. Test all API endpoints respond correctly 3. Verify Contract #1 can complete the full closeout workflow 4. Confirm the anonymous rating system works Show me the exact code changes and test the API endpoints to ensure the contract marketplace closeout system is fully functional!