Commit Graph

157 Commits

Author SHA1 Message Date
285b9decd9 + PriceField 2024-05-20 23:08:11 +04:00
eb4b29dfdf - DISABLE_PERMISSIONS 2024-05-20 23:05:27 +04:00
e571cf9597 + More bonus validation
+ Bonus transaction & order cancellation
+ Spend bonus via API
+ New status for order: DELETED
* Fixed bug with not actual bonus balance returned
* Order bonus can be added in several statuses
* Fixed TG templates a bit
2024-05-20 21:46:24 +04:00
f72bc724e2 * Moved Flower keys to env-file 2024-04-28 04:36:26 +04:00
4cbc269804 * Moved Flower keys to env-file 2024-04-28 04:29:25 +04:00
3c276d6947 + Flower systemd service 2024-04-28 04:26:39 +04:00
db89c9997f + systemd service for TG bot
* Cleanup in .env
2024-04-28 03:28:13 +04:00
2e37a2ef8a * Fixed nginx config 2024-04-28 03:09:11 +04:00
ac18244ee6 + TG: Show some message for already logged-in users 2024-04-28 03:08:43 +04:00
97eff29dae * Fixed duplicate port in uwsgi config 2024-04-28 01:38:48 +04:00
1781ca53db + load .env file via dotenv library 2024-04-28 01:06:03 +04:00
b089a2dec5 * Included .env file to systemd service 2024-04-28 00:46:47 +04:00
c7c4b5fd78 Cleanup 2024-04-27 21:33:03 +04:00
b2af369646 + .env file template 2024-04-27 21:31:06 +04:00
fe24802831 + Bonus system (TODO: spend bonuses)
+ Telegram bot: sign up, sign in, notifications

+ Anonymous users can't see yuan_rate_commission
* Only logged in customers can create/update orders
* Customer info migrated to separate User model
* Renamed legacy fields in serializers
* Cleanup in API classes
2024-04-27 21:29:50 +04:00
7d9f13b7d5 * Store keys in env variables
* Cleanup
2024-04-27 19:54:30 +04:00
94870a7183 * Fix in deploy configs 2024-03-19 00:55:46 +04:00
f694241659 * Cleanup in deploy configs 2024-03-19 00:21:00 +04:00
b888da0863 * Cleanup in deploy configs 2024-03-19 00:14:41 +04:00
2ed7205f88 + uwsgi stats 2024-03-13 17:27:21 +04:00
8ffc2af7f7 * Increased number of UWSGI processes 2024-03-11 02:01:09 +04:00
65892e03e4 + CDEK API calculator/tarifflist endpoint 2024-01-03 16:10:23 +04:00
5fc202fdc2 * Typo 2024-01-03 01:40:09 +04:00
d0ae3dc0d7 * Timeout for external API calls 2024-01-03 01:32:41 +04:00
3110017949 * Updated celery systemd configs 2023-12-22 00:25:01 +04:00
44722e4fcb * Disable in-memory cache GlobalSettings 2023-12-22 00:18:03 +04:00
180d1000d5 * Better logs in check_cdek_status() task 2023-12-07 07:44:20 +04:00
24c23ebecb * RuntimeDirectory for Celery services 2023-12-07 07:15:17 +04:00
c0f17df7a6 * Update yuan rate via Celery task 2023-12-07 07:07:41 +04:00
1085107f2b * run_celery_flower.sh update 2023-12-07 06:40:08 +04:00
5120a4a266 * Celery deployment configs 2023-12-07 06:23:11 +04:00
058f2b8a2d * WORK_DIR in run_celery.sh 2023-12-02 17:47:15 +04:00
73c7bdeb37 * Oupsie in run_celery.sh 2023-12-02 17:37:22 +04:00
9d7e45cd65 + Celery
+ Update CDEK status in background
2023-12-02 17:11:08 +04:00
e5e93ab6d5 * Renamed GlobalSettings.get_yuan_rate -> full_yuan_rate property
* In GlobalSettingsSerializer show full yuan rate
2023-11-24 17:58:42 +04:00
46de21309f * For anonymous users, show only available gifts 2023-11-23 03:55:58 +04:00
a9f5280176 * Try-except for CDEKAPI calls 2023-11-23 03:41:54 +04:00
c6d8bb0349 * Null-check for gifts 2023-11-23 03:39:06 +04:00
d0ec77c067 + yuan_rate_last_updated in GlobalSettings serializer
* Show raw yuan_rate in GlobalSettings
* Use yuan_rate+yuan_rate_commission sum for Checklist calculations
2023-11-23 03:32:54 +04:00
dd30a77466 * Cleanup 2023-11-23 02:46:45 +04:00
d71cb4fa11 * Added missing available_count field in GiftSerializer 2023-11-23 02:45:17 +04:00
7cd59d0325 * Updated API key for CurrencyAPI 2023-11-23 02:44:58 +04:00
dd39a0d2d5 * available_count for Gift 2023-11-23 02:40:30 +04:00
9f29e66d12 * Cleanup 2023-11-23 02:18:55 +04:00
8f72680984 * Fixed retry mechanism in external API calls 2023-11-23 02:17:35 +04:00
ab9db45b2b + CurrencyAPIClient for fresh CNY rate
+ yuan_rate_last_updated, yuan_rate_commission fields in GlobalSettings
2023-11-23 02:16:53 +04:00
7f1d51c9b4 * Filter Checklist by multiple status values 2023-11-23 02:13:05 +04:00
1d9776daf1 * Fixed wrong id for PriceSnapshot 2023-11-15 18:40:00 +04:00
34f9d08f9a * WIP: annotate_commission_rub 2023-11-11 09:51:17 +04:00
0ba7a8e881 + Set Checklist.gift to NULL on Gift deletion 2023-11-11 09:49:30 +04:00