-
Notifications
You must be signed in to change notification settings - Fork 188
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
Feature request: Show hits from yesterday, lastweek ... #60
Comments
Good idea! Would need to be able to do it on a specific date or a range of dates or some basic querying. I like it! Would be happy to consider a PR for such a feature. I am not actively developing this project these days; just trying to keep it up and running. |
I use this peace of code for general statistics per Day with some filter for a specific kind of objects. from hitcount.models import Hit Hit.objects.filter(hitcount__content_type=content_type).annotate(created_date=TruncDate('created')).values('created_date').annotate(sum=Count('created_date')).values('created_date', 'sum').order_by('created_date') This show the hits per day |
I ended up with this code. But it is super slow.
I am using this request to show in my users dashboard some activities in the last day, week and month. Any Idea how to optimize this? |
I use this peace of code: |
Hi,
how can I check hits for a specific time period? Right now, it is only possible to count the hits from now back to a certain time period.
Get total hits for an object over a certain time period:
{% get_hit_count for [object] within ["days=1"] %}
Regards
The text was updated successfully, but these errors were encountered: