Skip to content
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

Save by date feature #113

Open
nxic opened this issue Jun 22, 2021 · 1 comment
Open

Save by date feature #113

nxic opened this issue Jun 22, 2021 · 1 comment

Comments

@nxic
Copy link

nxic commented Jun 22, 2021

In my case I need get popular post by last {month|week|day}'s hitcount. Therefore I need to save hitcount separated by date or date range.

What is saved now:

id hits modified content_type_id object_pk
1 12 2021-06-22 04:05:36.622791 85 1
2 5 2021-06-22 03:58:53.801797 85 2

What I wanted to save:

id hits start_date end_date modified content_type_id object_pk
1 12 2021-06-20 04:05:36 2021-06-21 04:05:36 2021-06-22 04:05:36 85 1
2 5 2021-06-21 04:05:36 2021-06-22 04:05:36 2021-06-22 03:58:53 85 1
3 44 2021-06-20 04:05:36 2021-06-21 04:05:36 2021-06-22 04:05:36 85 2
4 33 2021-06-21 04:05:36 2021-06-22 04:05:36 2021-06-22 03:58:53 85 2
@CreeperCraftXD
Copy link

Can i use termux

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants