-
Notifications
You must be signed in to change notification settings - Fork 134
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
End of Year: show number of listened podcasts and episodes #414
End of Year: show number of listened podcasts and episodes #414
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The stats look good, I left a comment about reusing the date range SQL fragment.
Let me know what you think.
lastPlaybackInteractionDate IS NOT NULL AND | ||
lastPlaybackInteractionDate BETWEEN strftime('%s', date('now','start of year')) and strftime('%s', 'now') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It seems like this bit of SQL is being used in every query. I wonder if can extract this out so it can be reused instead of C&P it?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would you mind if I change that on #416? Just to avoid a bunch of merges/rebases.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Works for me.
Adds a story that shows the number of listened podcasts and episodes. Designs are not contemplated in this task.
To test
endOfYear
flag inFeatureFlag.swift
Checklist
CHANGELOG.md
if necessary.