-
-
Notifications
You must be signed in to change notification settings - Fork 186
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
Imported data from wakatime doesn't match the actual data. #334
Comments
Thanks for that super detailed bug report! First of all, please note that WakaTime and Wakapi will never show the same total time. That is due to the fact that they estimate that time differently, see our FAQ. Unfortunately, there is no right or wrong here and we can't for sure know precisely what the actual, true coding time was, only judging by heartbeats. Calculations are just heuristic. If there is a discrepancy between heartbeats downloaded and heartbeats actually inserted, but no warning, it might be due to the fact that duplicates have been filtered, see here: Line 62 in 85515d6
Two heartbeats are considered duplicates of each other if the following of their properties have identical values: Btw., WakaTime import will (hopefully) be refactored soon, see #323. Moreover, if it's not too much of a hassle for you, I'd recommend to use MySQL or Postgres as a database in favor of SQLite as there have been a few problem with SQLite in the past (including the one you came across). |
Thanks, I understand now. However, I think there should be a warning about using sqlite in FAQ |
It's not really like you shouldn't use SQLite, but I'd rather prefer a "proper" DMBS as the recommended way (mentioned here) for people with technical affinity. |
Describe the bug
, while on my self hosted instance of wakapi this.
![2022-03-08](https://user-images.githubusercontent.com/54082016/157233491-9ccbd4bb-aa11-4350-af88-a92c26232ac1.png)
When I am trying to import the data from wakatime , I am not getting the full information, just part of it. It can be seen by checking the total time. On wakatime I get the following output
Same goes for the whole statistics, it doesn't match the data provided in the wakatime dashboard.
It seems, it can't insert all the imported hearbeats into sqlite database.
Same problem was in the #206 issue. It was resolved by setting
![2022-03-08](https://user-images.githubusercontent.com/54082016/157240724-2ce429e4-e6f5-45ea-8a3e-072d523d07cb.png)
app.import_batch_size
to 50, so I have tried to set it to 20 and still I haven't got the whole statistics.Now I see the following in the logs:
Mar 08 13:18:43 ip-******* wakapi[27378]: 2022-03-08T13:18:43.827091656Z [INFO ] downloaded 31872 heartbeats for user 'Fom123' (28440 actually imported)
but with no warnings.Why is this actually imported thing happens?
System information
The text was updated successfully, but these errors were encountered: