Commit Graph

40 Commits

Author SHA1 Message Date
Vladless 5ccdc7f68b refactoring and minor improvements 2025-02-25 19:56:42 +03:00
izzzzzi 0657136ae5 Рефакторинг и оптимизация импортов в модулях проекта
- Упорядочивание и группировка импортов в соответствии с PEP 8
- Удаление неиспользуемых импортов
- Перемещение локальных импортов в начало списка
- Добавление пустых строк для улучшения читаемости
- Систематизация порядка импортов в различных модулях проекта
2025-02-25 04:14:58 +05:00
Vladless 69c5a1a52f add_commands: coupon/invite 2025-02-22 19:50:53 +03:00
Vladless 02dd042599 minor improvements 2025-02-21 22:36:03 +03:00
Vladless 469d2c9afe edit_text/lots of improvements 2025-02-16 07:17:35 +03:00
Zakhar Izmaylov fa8c644520 Add client toggle functionality for 3x-ui servers 2025-02-14 23:06:45 +03:00
Vladless 0da8771a52 NOTIFICATIONS 2.0/bug fixes and improvments 2025-02-14 00:30:06 +03:00
Vladless cd23569e24 Improve stability and minor fixes 2025-02-06 19:01:20 +03:00
Vladless 13325fab43 ruff formatting 2025-02-06 13:53:02 +03:00
Vladless 1b17f0fd71 change_location/CASHBACK/logging/bug_fixes 2025-02-02 02:11:57 +03:00
Vladless 51b4ebb677 fix coupons error 2025-02-01 19:15:47 +03:00
Zakhar Izmaylov c8e907edd1 Standardize import order in handler modules
- Reorder imports in multiple handler files to follow a consistent pattern
- Move type-specific imports like Message and CallbackQuery to be more organized
- Ensure clean and uniform import statements across admin and handler modules
2025-01-31 03:01:46 +03:00
Zakhar Izmaylov 6a98f4fb43 Update type hints in admin and handler modules
- Replace types.Message and types.CallbackQuery with explicit Message and CallbackQuery imports
- Improve type annotations in multiple handler files
- Ensure consistent type hinting across admin and handler modules
2025-01-31 02:59:57 +03:00
Zakhar Izmaylov 8ce7ee0ce0 Optimize import statements and remove unused imports across multiple files
This commit focuses on cleaning up import statements by:
- Removing unused imports
- Organizing import order
- Removing redundant imports
- Ensuring consistent import style across different modules
2025-01-29 07:15:20 +03:00
GitHub Actions 5f2b40b2d2 Auto-format code with Ruff using pyproject.toml 2025-01-29 04:01:20 +00:00
Zakhar Izmaylov a757852598 Merge branch 'main' of https://github.com/izzzzzi/Solo_bot 2025-01-29 07:01:01 +03:00
Zakhar Izmaylov 46ec8fef50 Update button labels from "🔙 Назад" to "⬅️ Назад" across multiple admin handlers and key management files for improved user interface consistency. This change enhances the visual clarity of navigation options within the application. 2025-01-23 12:06:38 +03:00
Zakhar Izmaylov e42a66dde7 Refactor database interaction functions in database.py and update related handlers. Renamed functions for clarity: save_temporary_data to create_temporary_data, add_blocked_user to create_blocked_user, remove_blocked_user to delete_blocked_user, and delete_coupon_from_db to delete_coupon. Updated trial management function from restore_trial to set_trial to better reflect its purpose. Adjusted corresponding calls in notifications, start, user, and admin handlers for consistency and improved readability. 2025-01-23 10:38:32 +03:00
Zakhar Izmaylov acb73101c0 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
Zakhar Izmaylov cbf53f0a50 Small fix 2025-01-19 08:49:46 +03:00
hteppl 0ca55040bd Rename handlers functions with actual names + delete parse_mode 2025-01-16 09:20:33 +03:00
hteppl b2f793fa70 Update stats, fix some text input flows to working with delete middleware 2025-01-15 14:29:33 +03:00
hteppl dddd1d2af7 Optimize and fix admin handlers logic 2025-01-15 08:01:16 +03:00
Zakhar Izmaylov 4b436a3d12 Add page coupons 2025-01-15 02:39:01 +03:00
hteppl c57e557755 Update admin coupons handler 2025-01-09 15:48:32 +03:00
Zakhar Izmaylov 142c1c15e7 Migrate to ruff 2024-12-13 12:09:20 +03:00
Vladless f0b2c40a8a 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 7a11c51e1f Move util-related files into separated folder + refactor imports 2024-12-08 04:57:20 +03:00
Zakhar Izmaylov fa17dea8fe Refactor database and notification handlers for improved readability and consistency. Clean up import statements, enhance logging messages, and streamline function calls across multiple files. Ensure proper session handling in payment processing functions. 2024-11-24 20:29:22 +03:00
Zakhar Izmaylov f25332f19d Fix delete msg 2024-11-24 13:51:18 +03:00
Zakhar Izmaylov 48149f14cd Fix 2024-11-24 01:47:37 +03:00
Zakhar Izmaylov 30efc7a1c7 Refactoring 2024-11-24 01:18:42 +03:00
Zakhar Izmaylov d1b7a01b4f Update config 2024-11-22 21:24:55 +03:00
Zakhar Izmaylov 480bcf28ab Update admin 2024-11-20 17:18:28 +03:00
Zakhar Izmaylov abf9462271 Fix admin 2024-11-18 22:19:17 +03:00
Zakhar Izmaylov 0afba0fa9c Add back button for coupons 2024-11-18 22:03:51 +03:00
Zakhar Izmaylov fe7690ac02 Fix admin and create coupons 2024-11-17 15:26:03 +03:00
Zakhar Izmaylov e951dd9573 Fix admin 2024-11-17 15:10:28 +03:00
Zakhar Izmaylov fb28a0881c Add dry logging 2024-11-16 18:01:28 +03:00
Vladless 3adc7fc59f coupons initial 2024-11-15 03:03:24 +03:00