Zakhar Izmaylov
79ebe6b6bc
Refactor backup sending logic in backup.py to remove redundant document sending for admin IDs. Streamlined the process by ensuring only the necessary admin IDs receive the backup document, enhancing code clarity and reducing potential errors in the backup notification process.
2025-01-23 08:54:22 +03:00
Zakhar Izmaylov
c4d3c921bd
Refactor code to utilize aiofiles for asynchronous file handling across multiple modules. Added a new function to remove blocked users from the database and updated user blocking/unblocking logic to use this new function. Improved database interaction in admin panel handlers by passing session objects instead of creating new connections. This enhances performance and maintains consistency in file operations.
2025-01-23 06:34:45 +03:00
Zakhar Izmaylov
99cc4b26bc
Add directory creation for database backups in backup.py
2025-01-22 10:31:03 +03:00
Zakhar Izmaylov
44cadc29ba
Refactor file handling to use aiofiles for asynchronous operations
...
- Replaced synchronous file reading with asynchronous file handling using aiofiles in multiple handlers and the backup module.
- Improved performance and responsiveness when sending images and backups by utilizing async file operations.
- Ensured consistent use of BufferedInputFile across all relevant functions for better code maintainability.
2025-01-21 12:03:56 +03:00
Zakhar Izmaylov
a2c71a49f2
Refactor and clean up code formatting across multiple files
...
- Consolidated and simplified code formatting by removing unnecessary line breaks and improving readability in various functions.
- Updated the handling of backup file sending in backup.py for better clarity.
- Streamlined error handling and logging messages in several handlers to enhance consistency.
- Adjusted the Makefile to exclude specific files during Ruff checks and formatting.
- Made minor adjustments to function signatures and parameter handling for improved clarity and consistency.
This commit enhances code maintainability and readability without altering functionality.
2025-01-21 08:57:12 +03:00
Vladless
c158c1339f
backup_update
2025-01-16 04:15:17 +03:00
Vladless
8fdc78c2e8
FlowPayRenew/fixNotify/pay_history/custom/statistic/minorFixes
2025-01-14 04:06:55 +03:00
Zakhar Izmaylov
0d82294bdb
Add antiflood and lint
2025-01-10 14:51:13 +03:00
Vladless
ae22950ce3
fix_refferal/GIFTS/redirect/name_sub and more
2024-12-19 20:37:41 +03:00
Zakhar Izmaylov
76d72ba203
Migrate to ruff
2024-12-13 12:09:20 +03:00
Vladless
7c883b07f9
Revert "Merge pull request #112 from Vladless/hteppl-optimize-sources"
...
This reverts commit fa681fac92 , reversing
changes made to b31c9d2e10 .
2024-12-10 03:53:07 +03:00
hteppl
1d915f849c
Move util-related files into separated folder + refactor imports
2024-12-08 04:57:20 +03:00
Vladless
9251087d2c
backup for 3x-ui
2024-12-05 23:31:48 +03:00
Zakhar Izmaylov
31eb551b6d
Refactoring
2024-11-24 01:18:42 +03:00
Zakhar Izmaylov
9673f10af7
Update config
2024-11-22 21:24:55 +03:00
Zakhar Izmaylov
7e2f56f20b
Update Middleware
2024-11-17 23:42:09 +03:00
Zakhar Izmaylov
8020fd9a7d
Fix send backup
2024-11-17 15:29:56 +03:00
Zakhar Izmaylov
601598dfd2
Add dry logging
2024-11-16 18:01:28 +03:00
Vladless
efd56e513d
small fix
2024-11-13 05:41:49 +03:00
Zakhar Izmaylov
1d9aa3b432
isort and black
2024-11-09 11:44:15 +03:00
Zakhar Izmaylov
b12bb33242
Migrate logging for loguru
2024-11-09 11:41:48 +03:00
Zakhar Izmaylov
1f7d0a263f
Fix logging
2024-11-09 11:33:17 +03:00
Zakhar Izmaylov
800a86c500
Refactoring and fix
2024-11-09 10:36:16 +03:00
Vladless
8f16fa4c1a
v3. Полноценные подписки
2024-11-07 07:53:29 +03:00
Vladless
8a235e129d
правки
2024-10-30 00:00:18 +03:00
Vladless
8d4bec79b3
Логи. Уведомления. Тексты
2024-10-25 20:45:12 +03:00
Vladless
4b1e8b555a
основной текст в отдельном файле
2024-10-22 01:53:50 +03:00
Vladless
49fa3693ad
автоввод паролей
2024-10-22 00:30:30 +03:00
Vladless
9f0d0acb53
Бэкапы. Отправка админу
2024-10-21 23:59:26 +03:00