sasheg 9fed81082f Fix hot-path endpoints: proper async DB sessions and awaited calls
Convert all money-flow endpoints (api_open_case, api_submit_contract,
api_execute_upgrade, api_sell_item, api_sell_bulk_items,
api_open_multiple_cases, api_open_slot_case, api_open_case_animated,
api_crash_bet, api_crash_cashout, api_get_inventory, api_item_detail,
api_rpu_info) to use AsyncSession + await throughout.

Critical bugfix: rpu.py and achievements.py functions (all async def)
were being called without 'await' and with sync Session objects, which
returned coroutine objects instead of actual data. This made RPU
weight adjustment, achievement tracking, and stat updates non-functional.

Also added AsyncSession to imports.
2026-07-25 13:37:39 +00:00
2026-07-05 17:40:52 +00:00
S
Description
Dodep Simulator
2.9 MiB
Languages
Python 43%
HTML 42.2%
CSS 10.8%
JavaScript 3.8%
Shell 0.2%