-
Notifications
You must be signed in to change notification settings - Fork 7
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
Clarify TimeFrame switching and notify on user mistakes #22
Comments
Yes this is absolutely normal behaviour. Sorry, I thought I documented somewhere that when changing the tracking period, one needs to start with a new db; but I can't find any reference of that (needs to be documented). In other words, the database is bound to the configuration's timeframe setting. |
Oh, I see, didn't expect that and thought it is just another kind of visualization. Do you have any plans to implement an automatic conversion between weekly and monthly so that you don't have to start from scratch again? I would like to keep the existing data and could live with the monthly view for a while. |
Sorry for not documenting this, I understand the frustration. No plans at all working on it either, but a conversion script could be integrated. I can give some more insights in how it works so you better understand the logic. So if you'd like to convert your old data; you'd need to loop all monthly entries/rows in all tables, for each you divide the monthly values to a weekly average, then you store them as (about 4) separate rows with the corresponding weekly timeframe IDs, and remove the monthly row. |
Maybe the database name could represent the time period if it is that important: simplestats_monthly.sqlite or simplestats_weekly.sqlite!? |
Good idea. :) |
Readme: fix some newlines and clarify db particularities.
I started collecting data with the default monthly view and everything looked fine:
Then I wanted to switch weekly view instead to have a more detailed timeline but this messes up the visualization of the data:
After switching back to monthly everything is back to normal so it seems that the data is stored correctly in the database but the logic to visualize it for the weekly option has an issue with it.
The text was updated successfully, but these errors were encountered: