mirror of
https://github.com/plausible/analytics.git
synced 2024-11-27 09:16:25 +03:00
d2270f3c35
* use more convenient testing functions * do not display + sign with 0% change in emails * Rename module/file/function names before, `weekly_report` was also used for monthly reports and that was a bit confusing to read in code. * Refactor send_email_report.ex This commit improves readability by refactoring the code into smaller functions and reducing the number of arguments given to functions. But more importantly, it stops making duplicate stats queries for every email recipient by moving the queries out of the for loop. * Refactor: move querying logic out of the worker module and merge all stats information under a single `stats` assign. |
||
---|---|---|
.. | ||
mix/tasks | ||
plausible | ||
plausible_web | ||
workers | ||
oban_error_reporter.ex | ||
plausible_release.ex | ||
plausible_web.ex | ||
plausible.ex | ||
sentry_filter.ex |