Vladless
6cd1dd8bc2
Refactored various modules, applied multiple improvements and fixed critical bugs
2025-05-08 00:50:18 +03:00
Vladless
22121b9171
ruff formatting
2025-04-24 23:20:18 +03:00
Vladless
799c657605
refactoring/utm/fix minor bugs
2025-04-21 21:53:13 +03:00
Capybara-z
289e0ae5b5
fix coupons/formatted day
2025-04-19 17:24:05 +03:00
Vladless
c42fee4298
remove table connections/token and cookies 3x-ui/bug fixes
2025-04-18 00:10:51 +03:00
Vladless
7bd5ecc55f
remnawave in country_mode/save shortid/bug fixes
2025-04-16 22:50:19 +03:00
Capybara-z
e1ecb6a1dc
Fix admin button
...
- Исправлено отображение кнопки админа при активации купона на деньги
2025-04-12 19:48:55 +03:00
Vladless
0cd896d35e
gb_count/fix coupons
2025-04-11 22:40:38 +03:00
Vladless
d85dad2a9e
version in cli-interface
2025-04-08 14:34:16 +03:00
Capybara-z
73ba081779
фикс активации купона
...
- Корректировка состояния активации купона
2025-04-01 22:10:40 +03:00
Vladless
4295e4b5ec
ruff, button file, castomize ping and backup
2025-03-28 20:39:06 +03:00
izzzzzi
17032811a4
Исправление сравнения tg_id в обработчике подписок. Приведение типов к int для корректной проверки идентификаторов.
2025-03-25 22:00:54 +05:00
Capybara-z
c9b0cd2db1
Вынос текст
...
Вынесенно:
- COUPON_INPUT_PROMPT
- COUPON_NOT_FOUND_MSG
- COUPON_ALREADY_USED_MSG
- COUPON_ACTIVATED_SUCCESS_MSG
2025-03-25 15:10:46 +03:00
Vladislav Lisitsyn
c7eff5cc3e
Revert "Добавление нового middleware и рефакторинг"
2025-03-12 10:23:51 +03:00
izzzzzi
92ec071e6b
Добавление нового middleware и рефакторинг обработчиков с поддержкой target_message
2025-03-08 04:59:23 +05:00
izzzzzi
79982f5aa6
Рефакторинг и оптимизация импортов в модулях проекта
...
- Упорядочивание и группировка импортов в соответствии с PEP 8
- Удаление неиспользуемых импортов
- Перемещение локальных импортов в начало списка
- Добавление пустых строк для улучшения читаемости
- Систематизация порядка импортов в различных модулях проекта
2025-02-25 04:14:58 +05:00
Vladless
1d089cce7d
add_commands: coupon/invite
2025-02-22 19:50:53 +03:00
Vladless
49eb0e68a1
change_location/CASHBACK/logging/bug_fixes
2025-02-02 02:11:57 +03:00
Zakhar Izmaylov
3741e4f3bf
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
28e7c78601
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
b1739cf4ea
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
Zakhar Izmaylov
c2ba4e9ab6
Refactor server management and database interactions. Renamed get_servers_from_db to get_servers for clarity and updated related handlers to utilize session management. Refactored add_server_to_db to create_server for consistency. Improved code readability and maintainability across coupon and notification handlers by streamlining database calls and enhancing error handling.
2025-01-23 11:36:15 +03:00
Zakhar Izmaylov
33f98276ce
Enhance database interaction in coupon and server management. Updated check_unique_server_name to accept session and cluster name parameters for improved uniqueness checks. Introduced new functions: get_coupon_by_code, delete_server, create_coupon_usage, check_coupon_usage, and update_coupon_usage_count for better coupon management. Refactored handlers to utilize these new functions, improving code clarity and maintainability.
2025-01-23 11:28:21 +03:00
Zakhar Izmaylov
8818d91232
Refactor database interaction in key management functions to utilize session objects for improved performance and consistency. Updated get_keys, get_keys_by_server, update_balance, and update_key_expiry functions to accept a session parameter, allowing for better session management across handlers. Adjusted related handler functions to pass the session, enhancing code clarity and maintainability.
2025-01-23 11:06:25 +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
Zakhar Izmaylov
9da808a024
Delete parse_mode
2025-01-15 02:15:21 +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
Zakhar Izmaylov
270f01511d
Update id
2024-11-24 11:07:52 +03:00
Zakhar Izmaylov
bc77c6a5ff
Fix typing
2024-11-24 01:19:00 +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
6701222697
Update text and add view_tariffs
2024-11-21 20:31:24 +03:00
Zakhar Izmaylov
601598dfd2
Add dry logging
2024-11-16 18:01:28 +03:00
Zakhar Izmaylov
5dd1fab7e9
Add dev mode and fix menu and fix stars and cryptobot
2024-11-15 11:40:25 +03:00
Vladless
31fa90aef1
coupons initial
2024-11-15 03:03:24 +03:00