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
Zakhar Izmaylov
4b436a3d12
Add page coupons
2025-01-15 02:39:01 +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