1
0

Add reminder if email is not enabled
All checks were successful
Build container / Package-Python (push) Successful in 26s
Build container / Package-Container (push) Successful in 1m24s

This commit is contained in:
Jon Michael Aanes 2024-05-16 00:03:10 +02:00
parent fca0535b24
commit f739df494a
Signed by: Jmaa
SSH Key Fingerprint: SHA256:Ab0GfHGCblESJx7JRE4fj4bFy/KRpeLhi41y4pF3sNA
2 changed files with 6 additions and 2 deletions

View File

@ -20,6 +20,7 @@ python -m personal_data
- [ ] YouTube (Music): Liked videos with title and URL.
- [ ] Steam Wishlist and Achievements
- [ ] fredagscafeen.dk
- [ ] [WaniKani](https://docs.api.wanikani.com)
## License

View File

@ -230,7 +230,10 @@ def main(
)
logger.info('Scraper done: %s', scraper.dataset_name)
if status['extended'] and send_email_notification:
if status['extended']:
if send_email_notification:
send_notification(session, scraper_cls.__name__, status['dicts'][-1])
else:
logger.info('Email not enabled: Skipping notification')
del scraper, session