Capybara-z
64cadac2f6
fix: coupon renew uses tariff limits / fix autorenew / fix renew keyboard / show tariff info in key / key renew uses correct tariff / fix start menu display
2025-05-29 22:31:28 +03:00
Capybara-z
fa60336c5a
add to accrual statistics
...
- Добавлено логирование начислений купонов.
2025-05-25 23:38:31 +03:00
Vladless
ca5a4a3b90
session for renew_key
2025-05-24 21:53:15 +03:00
Vladless
5571652a9a
ORM update and lots of improvements
2025-05-24 19:30:23 +03:00
Vladless
4946a972c1
Refactored various modules, applied multiple improvements and fixed critical bugs
2025-05-08 00:50:18 +03:00
Vladless
422ce15dca
ruff formatting
2025-04-24 23:20:18 +03:00
Vladless
0f817920da
refactoring/utm/fix minor bugs
2025-04-21 21:53:13 +03:00
Capybara-z
26411ef982
fix coupons/formatted day
2025-04-19 17:24:05 +03:00
Vladless
dcbf121157
remove table connections/token and cookies 3x-ui/bug fixes
2025-04-18 00:10:51 +03:00
Vladless
e0212866b4
remnawave in country_mode/save shortid/bug fixes
2025-04-16 22:50:19 +03:00
Capybara-z
2c7356f0b9
Fix admin button
...
- Исправлено отображение кнопки админа при активации купона на деньги
2025-04-12 19:48:55 +03:00
Vladless
5e72f9d416
gb_count/fix coupons
2025-04-11 22:40:38 +03:00
Vladless
34210dc808
version in cli-interface
2025-04-08 14:34:16 +03:00
Capybara-z
8c27e43c52
фикс активации купона
...
- Корректировка состояния активации купона
2025-04-01 22:10:40 +03:00
Vladless
b2b5a57b57
ruff, button file, castomize ping and backup
2025-03-28 20:39:06 +03:00
izzzzzi
076da78981
Исправление сравнения tg_id в обработчике подписок. Приведение типов к int для корректной проверки идентификаторов.
2025-03-25 22:00:54 +05:00
Capybara-z
edeadba25e
Вынос текст
...
Вынесенно:
- 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
a2693393d3
Revert "Добавление нового middleware и рефакторинг"
2025-03-12 10:23:51 +03:00
izzzzzi
9b557f22d1
Добавление нового middleware и рефакторинг обработчиков с поддержкой target_message
2025-03-08 04:59:23 +05: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
1b17f0fd71
change_location/CASHBACK/logging/bug_fixes
2025-02-02 02:11:57 +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
Zakhar Izmaylov
73a365eeb6
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
7dafb47c38
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
906601f5cd
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
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
4b2e28d15d
Delete parse_mode
2025-01-15 02:15:21 +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
2f799f0bad
Update id
2024-11-24 11:07:52 +03:00
Zakhar Izmaylov
95192032de
Fix typing
2024-11-24 01:19:00 +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
998bf7f7c6
Update text and add view_tariffs
2024-11-21 20:31:24 +03:00
Zakhar Izmaylov
fb28a0881c
Add dry logging
2024-11-16 18:01:28 +03:00
Zakhar Izmaylov
4336826986
Add dev mode and fix menu and fix stars and cryptobot
2024-11-15 11:40:25 +03:00
Vladless
3adc7fc59f
coupons initial
2024-11-15 03:03:24 +03:00