mirror of
https://github.com/BEDOLAGA-DEV/remnawave-bedolaga-telegram-bot.git
synced 2026-02-23 12:53:41 +00:00
- Add 37 missing models to backup (payment providers, polls, contests, wheel, FAQ, promo offers, webhooks, configs, menu buttons, etc.) - Add tariff_promo_groups and payment_method_promo_groups association tables - Replace hardcoded association restore with generic handler - Fix transaction atomicity: flush instead of commit in inner methods, remove inner rollback calls, single commit/rollback in outer handler - Fix composite PK support for UserPromoGroup (was only detecting first PK) - Fix duplicate insert bug when clear_existing=True and record already exists - Add cabinet_refresh_tokens to clear list, fix support_audit_logs deletion order - Add Time column parsing for ReferralContest.daily_summary_time - Security: tarfile filter='data', path traversal protection in _restore_files and delete_backup, os.sep in startswith checks