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
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
ad9c49f841
Merge branch 'main' of https://github.com/izzzzzi/Solo_bot
2025-01-23 06:14:33 +03:00
Vladless
b81a0f289f
location-selection/major_update_notifications/gifts and more fixes
2025-01-21 22:43:18 +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
8fdc78c2e8
FlowPayRenew/fixNotify/pay_history/custom/statistic/minorFixes
2025-01-14 04:06:55 +03:00
Vladless
6943794e50
add_stats
2025-01-13 03:58:58 +03:00
Zakhar Izmaylov
287d0a635b
Update stats
2025-01-11 18:10:43 +03:00
Zakhar Izmaylov
0d82294bdb
Add antiflood and lint
2025-01-10 14:51:13 +03:00
Zakhar Izmaylov
d40c845d62
Add stats
2025-01-10 14:38:28 +03:00
Vladless
70e3f5c714
syncClaster/picGifts/mailingCluster/renewButtin and more
2025-01-10 00:02:13 +03:00
Vladless
7758415ddf
fiatCryptobot/flowPayments/Buttons/fixNotify/BanOfUsers/fixTrial and more
2025-01-09 06:00:50 +03:00
Vladless
10df771a15
fiatCryptobot/flowPayments/Buttons/fixNotify/BanOfUsers/fixTrial and more
2025-01-09 02:40:39 +03:00
Zakhar Izmaylov
d8944a9c52
Update version
2025-01-06 15:29:24 +03:00
Zakhar Izmaylov
fceff14d0a
Fix process_message_to_all
2025-01-06 12:09:15 +03:00
Zakhar Izmaylov
93ac01592f
Update send_to_alls
2025-01-05 23:19:45 +03:00
Vladless
1e64817e3f
TV/Send_message/custom_refferal_level/buttons
2024-12-28 22:28:38 +03:00
Vladless
15fef698d9
TV/Send_message/custom_refferal_level/buttons
2024-12-28 22:22:56 +03:00
hteppl
7d8050ce1c
Monthly payments in admin stats
2024-12-26 03:36:28 +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
74353143cf
add/delete servers in admin
2024-12-02 03:25:06 +03:00
Vladless
cd7db1330e
sudo in restart
2024-11-29 00:01:48 +03:00
Zakhar Izmaylov
cb19c3829f
Enhanced notifications and admin: CSV export for users/payments, better feedback/navigation, DEV_MODE checks for notifications, .csv in .gitignore, fixed trial expiry with TRIAL_TIME.
2024-11-26 02:52:15 +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
576a315baa
Fix admin
2024-11-23 07:14:58 +03:00
Zakhar Izmaylov
9673f10af7
Update config
2024-11-22 21:24:55 +03:00
Zakhar Izmaylov
fc830a427c
Update text admin
2024-11-22 01:14:23 +03:00
Zakhar Izmaylov
4cae37ef33
Add search from username
2024-11-22 00:43:23 +03:00
Zakhar Izmaylov
a04a6bd5d2
Update user_stats_menu
2024-11-21 21:14:44 +03:00
Zakhar Izmaylov
3041e0a208
Update admin
2024-11-20 17:18:28 +03:00
Zakhar Izmaylov
61bf3cd129
Add new table and add stats in admin
2024-11-20 16:47:21 +03:00
Zakhar Izmaylov
8836dc577e
Fix admin and create coupons
2024-11-17 15:26:03 +03:00
Zakhar Izmaylov
a2be86b134
Fix admin
2024-11-17 15:10:28 +03:00
Zakhar Izmaylov
c2d06e10b8
Add admin middleware
2024-11-17 13:11:49 +03:00
Zakhar Izmaylov
0cfd656d86
#TODO Admin and bash
2024-11-16 23:56:45 +03:00
Vladless
31fa90aef1
coupons initial
2024-11-15 03:03:24 +03:00
Zakhar Izmaylov
ac3451a209
Add DatabaseMiddleware #TODO
2024-11-13 17:03:18 +03:00
Zakhar Izmaylov
8f4403accd
Restructuring for filters
2024-11-13 16:53:23 +03:00
Vladless
efd56e513d
small fix
2024-11-13 05:41:49 +03:00
Vladless
7a4aa5099d
redesign/bug fixes/admin trial
2024-11-13 04:01:13 +03:00
Vladless
13efb0cc45
redesign/bug fixes/admin trial
2024-11-13 03:59:34 +03:00
Zakhar Izmaylov
577592479b
Fix formating and freekassa
2024-11-12 00:11:33 +03:00
Zakhar Izmaylov
2ae03cb6b0
Small refactoring admin
2024-11-11 23:17:09 +03:00
Zakhar Izmaylov
af8ecffb6d
Add crypto(beta), fix import, fix requirements.txt
2024-11-11 21:51:34 +03:00
Zakhar Izmaylov
27f5b9d43a
Add make and config for formatting
2024-11-10 11:02:15 +03:00
Vladless
adaae41826
bug and fix
2024-11-10 02:25:36 +03:00
Zakhar Izmaylov
a294f123d2
Fix
2024-11-09 23:20:08 +03:00