Commit Graph

153 Commits

Author SHA1 Message Date
57313e3018 * Moved Flower keys to env-file 2024-04-28 04:29:25 +04:00
4b59df5555 + Flower systemd service 2024-04-28 04:26:39 +04:00
1ea70513b0 + systemd service for TG bot
* Cleanup in .env
2024-04-28 03:28:13 +04:00
cfb75bad34 * Fixed nginx config 2024-04-28 03:09:11 +04:00
540241c3b1 + TG: Show some message for already logged-in users 2024-04-28 03:08:43 +04:00
e63addfaea * Fixed duplicate port in uwsgi config 2024-04-28 01:38:48 +04:00
b820e3ee9f + load .env file via dotenv library 2024-04-28 01:06:03 +04:00
c53017564b * Included .env file to systemd service 2024-04-28 00:46:47 +04:00
903c64d451 Cleanup 2024-04-27 21:33:03 +04:00
02f8e30770 + .env file template 2024-04-27 21:31:06 +04:00
ef40e9f7e0 + 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
bfff884603 * Store keys in env variables
* Cleanup
2024-04-27 19:54:30 +04:00
f2b506645b * Fix in deploy configs 2024-03-19 00:55:46 +04:00
baf63fc3c1 * Cleanup in deploy configs 2024-03-19 00:21:00 +04:00
9d05b2e1c2 * Cleanup in deploy configs 2024-03-19 00:14:41 +04:00
81fe6c34e5 + uwsgi stats 2024-03-13 17:27:21 +04:00
7d50cebe81 * Increased number of UWSGI processes 2024-03-11 02:01:09 +04:00
873672ea60 + CDEK API calculator/tarifflist endpoint 2024-01-03 16:10:23 +04:00
cd7d4489c8 * Typo 2024-01-03 01:40:09 +04:00
cbc2419bfe * Timeout for external API calls 2024-01-03 01:32:41 +04:00
b4a0b35008 * Updated celery systemd configs 2023-12-22 00:25:01 +04:00
bd3ea89166 * Disable in-memory cache GlobalSettings 2023-12-22 00:18:03 +04:00
8e49176351 * Better logs in check_cdek_status() task 2023-12-07 07:44:20 +04:00
683da45e7d * RuntimeDirectory for Celery services 2023-12-07 07:15:17 +04:00
ee49810e91 * Update yuan rate via Celery task 2023-12-07 07:07:41 +04:00
1eb3e5a238 * run_celery_flower.sh update 2023-12-07 06:40:08 +04:00
a2b92ab029 * Celery deployment configs 2023-12-07 06:23:11 +04:00
46ff6b9d8b * WORK_DIR in run_celery.sh 2023-12-02 17:47:15 +04:00
13333f7681 * Oupsie in run_celery.sh 2023-12-02 17:37:22 +04:00
29e76a5371 + Celery
+ Update CDEK status in background
2023-12-02 17:11:08 +04:00
8a7b53b069 * Renamed GlobalSettings.get_yuan_rate -> full_yuan_rate property
* In GlobalSettingsSerializer show full yuan rate
2023-11-24 17:58:42 +04:00
d22f492df0 * For anonymous users, show only available gifts 2023-11-23 03:55:58 +04:00
3e8b1f7c66 * Try-except for CDEKAPI calls 2023-11-23 03:41:54 +04:00
00ddded442 * Null-check for gifts 2023-11-23 03:39:06 +04:00
ccd9c60a97 + 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
ceeae24f69 * Cleanup 2023-11-23 02:46:45 +04:00
abaa11e9c6 * Added missing available_count field in GiftSerializer 2023-11-23 02:45:17 +04:00
93ab682c69 * Updated API key for CurrencyAPI 2023-11-23 02:44:58 +04:00
6903c2ff13 * available_count for Gift 2023-11-23 02:40:30 +04:00
db842d507c * Cleanup 2023-11-23 02:18:55 +04:00
3a0c24c4dc * Fixed retry mechanism in external API calls 2023-11-23 02:17:35 +04:00
2e79e579f7 + CurrencyAPIClient for fresh CNY rate
+ yuan_rate_last_updated, yuan_rate_commission fields in GlobalSettings
2023-11-23 02:16:53 +04:00
a4f8dfc27c * Filter Checklist by multiple status values 2023-11-23 02:13:05 +04:00
aa3aa00ae1 * Fixed wrong id for PriceSnapshot 2023-11-15 18:40:00 +04:00
0e5c0ce16f * WIP: annotate_commission_rub 2023-11-11 09:51:17 +04:00
9a2a630465 + Set Checklist.gift to NULL on Gift deletion 2023-11-11 09:49:30 +04:00
65b27d49d7 * annotate_price_rub fixed 2023-11-11 09:48:32 +04:00
520d9ebc0e * Disable Sentry for debug environment 2023-11-09 17:19:18 +04:00
8089947dcb + Centry logging 2023-11-03 22:42:03 +04:00
6f96eaaac7 * Check the Gifts that are being added to Checklist from unauthorized users 2023-11-03 00:55:07 +04:00