• Stefy Lanza (nextime / spora )'s avatar
    v1.2.10: Fix critical betting system bugs and enhance stability · fd7dabc5
    Stefy Lanza (nextime / spora ) authored
    Critical Fixes:
    - Fixed SQLite NOT NULL constraint violation in bet creation API by properly extracting fixture_id from match data
    - Resolved 500 error in bet details page route by implementing complete database data fetching and template variable population
    - Fixed moment() undefined template rendering error by removing server-side JavaScript calls and using client-side time handling
    - Corrected JavaScript API endpoint mismatches (POST /cancel vs DELETE /bets/{uuid}) and added missing event handlers
    
    Bug Fixes:
    - Enhanced bet creation logic to query MatchModel and extract fixture_id from first bet detail's match
    - Implemented comprehensive bet details route with database session management and statistics calculation
    - Fixed template compatibility issues by eliminating server-side/client-side JavaScript conflicts
    - Added proper event listeners for delete bet detail buttons in bet management interface
    
    Database & API Improvements:
    - Ensured proper foreign key relationships between bets, bet_details, and matches tables
    - Enhanced error handling with proper HTTP status codes and user-friendly messages
    - Fixed attribute reference from column_value to float_value in MatchOutcomeModel queries
    - Improved database constraint compliance and data consistency validation
    
    Documentation Updates:
    - Updated README.md with version 1.2.10 critical bug fixes and stability improvements
    - Enhanced CHANGELOG.md with detailed technical fixes and implementation details
    - Added comprehensive troubleshooting section to DOCUMENTATION.md with root cause analysis
    
    The betting system is now fully functional with:
     Complete CRUD operations without database constraint violations
     Proper bet details page display with comprehensive information
     Fixed JavaScript API interactions and event handling
     Stable template rendering without server-side JavaScript conflicts
     Enhanced error handling and user experience
    fd7dabc5
Name
Last commit
Last update
assets Loading commit data...
mbetterclient Loading commit data...
packages Loading commit data...
uploads Loading commit data...
.gitignore Loading commit data...
CHANGELOG.md Loading commit data...
DOCUMENTATION.md Loading commit data...
LICENSE Loading commit data...
PyQt6_UPGRADE_SUMMARY.md Loading commit data...
PyQt6_VIDEO_PLAYER_DOCUMENTATION.md Loading commit data...
README.md Loading commit data...
build.bat Loading commit data...
build.py Loading commit data...
build.sh Loading commit data...
cookies.txt Loading commit data...
create_test_matches.py Loading commit data...
extract_js.py Loading commit data...
main.py Loading commit data...
requirements.txt Loading commit data...
temp_js.js Loading commit data...
test_cashier_complete.py Loading commit data...
test_cashier_simple.py Loading commit data...
test_dev_message.py Loading commit data...
test_ffmpeg.py Loading commit data...
test_games_thread.py Loading commit data...
test_js_syntax.py Loading commit data...
test_persistent_dirs.py Loading commit data...
test_screen_cast_integration.py Loading commit data...
test_timer.py Loading commit data...