Commit graph

128 commits

Author SHA1 Message Date
Son
6468f7c8a5 improve bounce report 2021-10-24 10:39:47 +02:00
Son
ef5670b1cf add all bounce to daily report 2021-10-23 18:40:02 +02:00
Son
7bfdb821af compute and include nb_total_bounced_last_24h in email report 2021-10-15 10:47:07 +02:00
Son
c132e3fbbc flake8 2021-10-12 15:03:16 +02:00
Son
eb0e327402 remove "with app.app_context():" 2021-10-12 14:47:01 +02:00
Son
372466ab06 do not use flask-sqlalchemy
- add __tablename__ for all models
- use sa and orm instead of db
- rollback all changes in tests
- remove session in @app.teardown_appcontext
2021-10-12 14:36:47 +02:00
Son Nguyen Kim
e3f81bc4e4 fix subscription reminder sent to lifetime user 2021-09-27 15:51:09 +02:00
Son Nguyen Kim
5ac78f2694 reformat 2021-09-08 11:29:55 +02:00
Son Nguyen Kim
fcb18e66e8 fix increase_percent 2021-07-29 11:32:15 +02:00
Son Nguyen Kim
6c12b31060 make sure to not notify alias in HibpNotifiedAlias 2021-07-29 09:55:36 +02:00
Son Nguyen Kim
fb4cb8727c Add notify_hibp cron job 2021-07-29 09:35:00 +02:00
Son Nguyen Kim
5aef6cceb2 Add description, date column to Hibp model 2021-07-29 08:51:21 +02:00
Son Nguyen Kim
52376484a5 Add nb_block_last_24h, nb_bounced_last_24h, nb_forward_last_24h, nb_reply_last_24h 2021-07-28 18:31:59 +02:00
Son Nguyen Kim
39e2750486 remove Metric 2021-07-28 18:20:18 +02:00
Son Nguyen Kim
ba6b6e2fdd Delete EmailLog older than 2 weeks 2021-07-14 17:15:28 +02:00
Son
ec763544f1 handle 429 returned by HIBP 2021-06-19 19:56:18 +02:00
Son
2bed79095c ignore 5** error from HIBP 2021-06-17 23:04:25 +02:00
Son NK
c890bfb073 increase HIBP sleep time to have some marges 2021-05-28 17:47:54 +02:00
Son NK
78e3a4bf77 handle the case an alias is deleted in the meantime 2021-05-22 16:36:19 +02:00
Sylvia van Os
6bcaa6453e
Update hibp_last_check on succesful HIBP check
Accidentally got rid of this during some refactor
2021-05-20 19:00:11 +02:00
Son NK
14bc4f8872 make sure to only run HIBP check on enabled alias 2021-05-19 16:12:58 +02:00
Son NK
d4e930c930 Remove nullsfirst as not compatible with sqlite. Add more logging 2021-05-19 12:46:55 +02:00
Sylvia van Os
40d0dee88f asyncio-ify 2021-05-18 21:18:07 +02:00
Sylvia van Os
a08b0c05cc Don't override id 2021-05-17 21:29:29 +02:00
Sylvia van Os
969616d671 Date compare in DB instead of model function 2021-05-17 18:20:35 +02:00
Sylvia van Os
a9c897c6c5 Fix typo 2021-05-16 00:10:04 +02:00
Sylvia van Os
42cfce7ce1 Optimize API requests on multiple API keys 2021-05-15 23:23:59 +02:00
Sylvia van Os
bee468e055 Black 2021-05-15 18:04:50 +02:00
Sylvia van Os
f67f5297f2 Add HIBP checks 2021-05-14 19:50:32 +02:00
Son NK
15610f1efc Run migrate_domain_trash() and set_custom_domain_for_alias() in sanity check 2021-04-12 20:20:55 +02:00
Son NK
bbf895ed42 add alias creation report to stats 2021-03-29 10:10:25 +02:00
Son NK
c122b05896 refactor cron 2021-03-24 17:39:16 +01:00
Son NK
8eed6008f3 fix cron 2021-03-24 17:38:17 +01:00
Son NK
1492f29a1a flake8 2021-03-23 10:50:49 +01:00
Son NK
58b0c91db5 use Metric2 system 2021-03-23 10:50:32 +01:00
Son NK
ec1633d0d7 create Metric2 model 2021-03-23 10:23:40 +01:00
Son NK
e9e97cea61 send bounce report in cron 2021-03-23 10:02:14 +01:00
Son NK
f038a97649 refactor cron 2021-03-23 09:47:57 +01:00
Son
cd3854561a improve logging 2021-02-06 17:31:06 +01:00
Son NK
b3181c054f make sure to delete bounces, transactional emails after 7 days 2021-01-26 09:59:22 +01:00
Son NK
e09e6c51b8 make sure all metrics have the same date 2021-01-26 09:59:22 +01:00
Son NK
113dbd1c81 fix nb_referred_user_upgrade computation 2021-01-25 18:50:08 +01:00
Son NK
2a33f112b9 compute metrics 2021-01-25 18:49:14 +01:00
Son NK
2cc7f5ac13 only alert for contact that's created after the sanity date 2021-01-11 12:35:54 +01:00
Son NK
e9adb3270d use sanitize_email instead of .lower().strip().replace(" ", "") 2021-01-11 12:29:40 +01:00
Son NK
ef7fae32b1 remove the "Hi {name}" from email template 2021-01-11 10:23:34 +01:00
Son NK
f1f6234248 Add nb_manual_premium, nb_coinbase_premium to stats 2020-12-14 20:45:30 +01:00
Son NK
3dd8ed7840 Create /dashboard/coinbase_checkout, remove extend_subscription route 2020-12-14 11:34:59 +01:00
Son NK
1f4631821b fix 2020-12-13 19:41:42 +01:00
Son NK
43a021dd88 send a reminder when a coinbase subscription is ending soon 2020-12-13 19:18:58 +01:00