Vladless
769f5eaf9a
minor improvements
2025-02-21 22:36:03 +03:00
Capybara-z
39baa1640c
Оптимизация трафика
...
- Оптимизирован траифик, спасибо @hteppl
- Исправлен баг с логами в хедере хидифая.
2025-02-20 20:06:27 +03:00
Capybara-z
37ebf4cdee
Апдейт
...
- Время подписок берется из бд
- Облегчен парсер данных
- Добавлена поддержка хидифай
- Улучшена работа отдачи и обновления подписки.
2025-02-19 22:26:01 +03:00
Capybara-z
b05e57fb16
фикс парсера времени
...
- фикс парсера времени для старых панелей
2025-02-19 01:31:15 +03:00
Capybara-z
4c977d07ce
чистка кода
...
- Почитсил коментарии.
2025-02-18 23:57:38 +03:00
Capybara-z
bd39825cf9
фикс расчета остатка
...
- Не посмотрел что TOTAL_GB указывается в байтах
2025-02-18 19:40:47 +03:00
Capybara-z
e01a7efe4a
фикс подписок
...
- Поправлено время для SUPERNODA = False
- Добавлен подсчет использованного трафика для Happ
2025-02-18 17:35:40 +03:00
Capybara-z
8b159ab75d
фикс парсинга времени
...
- исправлен парсинг времени если передается без запятой
2025-02-18 14:31:43 +03:00
Capybara-z
316bd191a2
Указал коменты
2025-02-18 13:45:59 +03:00
Capybara-z
29f6fe40e0
фикс отображения
...
- Исправлено отображение с трафиком и без для спуперноды вкл/выкл
- Исправлен парсинг в общем для разных режимов.
2025-02-18 13:30:46 +03:00
Capybara-z
40f1f1b14e
Правки для Happ
...
- Добавлен хедер трафика и даты завершения
2025-02-18 12:12:34 +03:00
Capybara-z
31822ee634
поправлены отступы
2025-02-18 11:19:52 +03:00
Capybara-z
773db02746
Фикс отображения данных
...
- Фикс отображения данных для Happ
2025-02-18 11:17:33 +03:00
Capybara-z
2ba9615151
фикс отображения трафика
...
- Корректное отображения трафика
2025-02-18 10:51:51 +03:00
Capybara-z
19c4c0496a
Единое время обновления подписки
...
- Единое время обновления подписки
2025-02-18 10:30:18 +03:00
Capybara-z
903cde9a78
фикс часов
...
- фискс отображения когда остаются только часы
2025-02-18 10:19:05 +03:00
Capybara-z
3592eccea9
Фикс подпсиок
...
- Убираем профиль
- Отказ от SUB_MESSAGE
- Перадача подпсики и времени работы вместо SUB_MESSAGE
- Отдельная итеграция для Happ по хукам.
2025-02-18 09:21:10 +03:00
Vladless
4afd1668c9
add_change_domain/bug_fixes_16
2025-02-18 02:05:14 +03:00
Capybara-z
254c489010
Апдейт подписок.
...
- Добавление профиля.
- Выводит имейл и время подписки
- Страны становятся чистыми
- Профиль всегда на 1 месте
- Перемашка стран.
2025-02-17 02:50:21 +03:00
Boris Kovalskii
770f40f4ff
Opimize and fix coupons and refferals
2025-02-16 17:09:16 +10:00
Vladless
4b503ce31a
edit_text/lots of improvements
2025-02-16 07:17:35 +03:00
Zakhar Izmaylov
310aa9bce6
Add client toggle functionality for 3x-ui servers
2025-02-14 23:06:45 +03:00
Vladless
bfefdef304
optimization notifications and get_traffic
2025-02-14 04:36:37 +03:00
Vladless
3de049e436
NOTIFICATIONS 2.0/bug fixes and improvments
2025-02-14 00:30:06 +03:00
Vladless
5a77f29bd5
add traffic statistic/share refferal link and more
2025-02-07 21:38:46 +03:00
Vladless
0789b3fe9d
Improve stability and minor fixes
2025-02-06 19:01:20 +03:00
Vladless
7623f339bc
ruff formatting
2025-02-06 13:53:02 +03:00
Vladless
3de1635efa
Major bug fixes
2025-02-06 02:03:12 +03:00
Vladless
54d5df72af
minor_fixes
2025-02-03 00:08:55 +03:00
Vladless
46e6102412
minor fixes
2025-02-02 19:40:17 +03:00
Vladless
d3b384aa61
change_location/CASHBACK/logging/bug_fixes
2025-02-02 02:42:28 +03:00
Vladless
49eb0e68a1
change_location/CASHBACK/logging/bug_fixes
2025-02-02 02:11:57 +03:00
Zakhar Izmaylov
cc42900142
Update server name input handler with session parameter
...
- Add session parameter to server name input handler
- Modify server name uniqueness check to use session and cluster name
- Improve data retrieval and validation in server creation flow
2025-01-31 10:54:42 +03:00
Zakhar Izmaylov
c379011fd2
Fix key renewal and expiry update function signatures
...
- Update `change_expiry_time` to pass session to `update_key_expiry`
- Adjust `complete_key_renewal` connection closing order
- Minor code structure improvements in key handling functions
2025-01-31 06:44:36 +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
bf35156455
Remove check_online_users function and minor import reorganization
...
- Removed unused check_online_users function from notifications handler
- Reorganized imports in notifications.py and utils.py
- Fixed TimeoutError import in subscriptions.py
2025-01-31 00:08:31 +03:00
Zakhar Izmaylov
899da825cb
Refactor and improve security with cryptographically secure random generation
...
- Replace `random` module with `secrets` for cryptographically secure random choices
- Update type hints for async API methods in client.py
- Optimize file reading with aiofiles in multiple handlers
- Improve error handling and logging in various modules
- Update Python target version to 3.12 in pyproject.toml
- Remove unused imports and improve code quality
2025-01-30 22:35:09 +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
GitHub Actions
d47952fe3e
Auto-format code with Ruff using pyproject.toml
2025-01-29 04:01:20 +00:00
Zakhar Izmaylov
74d58ce310
Merge branch 'main' of https://github.com/izzzzzi/Solo_bot
2025-01-29 07:01:01 +03:00
Oleg Kraev
f7c906f608
Merge branch 'main' into dev
2025-01-24 23:35:19 +03:00
Zakhar Izmaylov
3d67311e61
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
7bfbf89054
Refactor trial management function names for clarity. Renamed set_trial to update_trial in database.py and updated all related handler calls in start.py, admin_user_editor.py, and trial_key.py to reflect this change. This improves code readability and consistency across the codebase.
2025-01-23 12:03:01 +03:00
Zakhar Izmaylov
bb803ab145
Implement new database functions for server and coupon management. Added check_server_name_by_cluster, get_coupon_details, get_referral_by_referred_id, and get_all_keys to enhance data retrieval capabilities. Updated handlers to utilize these new functions, improving code clarity and maintainability. Refactored existing database calls in start.py, utils.py, and keys.py for consistency and better session management.
2025-01-23 11:58:35 +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
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
0aab2096a5
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
5a3f54c3a7
Refactor client management in key_utils.py and trial_key.py to utilize ClientConfig dataclass for improved parameter handling. This change enhances code clarity and maintainability by consolidating client configuration parameters into a single structured object, streamlining the add_client function calls across multiple handlers.
2025-01-23 10:24:16 +03:00
Zakhar Izmaylov
9437ee9c90
Refactor key retrieval and management logic across multiple handlers. Update get_key_details to include email in the fetched record and replace direct SQL queries with dedicated functions for improved code clarity and maintainability. Add a TODO comment in admin_servers.py for future enhancements.
2025-01-23 08:41:44 +03:00