iamjustkoi / StudyTimeStats

Customizable statistics add-on for Anki.
https://ankiweb.net/shared/info/1247171202
MIT License
19 stars 4 forks source link

Total Reviews and Hours Count Discrepant With Anki Stats #23

Closed MarvNC closed 1 year ago

MarvNC commented 1 year ago

Bug/Issue Description My total reviews and hours count seems to be somewhat off from what Anki reports.

To Reproduce As shown in the below screenshots, I have a Study Time Stat for total hours and reviews set up, and check my stats with the Anki stats screen on the entire collection for all time. Note that 1.01 months is about 737 hours.

Screenshots/Visuals

Click to expand ![anki_Study_Time_Stats_Options_2023-05-26_21-59-59](https://github.com/iamjustkoi/StudyTimeStats/assets/17340496/121906b8-8acc-4ebd-8294-f0b072fd8649) ![anki_User_1_-_Anki_2023-05-26_22-00-07](https://github.com/iamjustkoi/StudyTimeStats/assets/17340496/3ac4c611-9ec8-401a-90ed-d7cce2e51bd6) ![anki_Statistics_2023-05-26_22-00-25](https://github.com/iamjustkoi/StudyTimeStats/assets/17340496/57ad686e-b193-4198-a8ac-b693ed0621aa) ![anki_Statistics_2023-05-26_22-00-32](https://github.com/iamjustkoi/StudyTimeStats/assets/17340496/f62d7267-3d52-4793-857e-7067dd9a86d6)

System/Debug Info

Click to expand Anki 2.1.56 (07fd88dd) Python 3.9.15 Qt 6.4.0 PyQt 6.4.0 Platform: Windows-10-10.0.19045 Flags: frz=True ao=True sv=3 Add-ons, last update check: 2023-05-26 18:14:09 ===Add-ons (active)=== (add-on provided name [Add-on folder, installed at, version, is config changed]) '' ['generate-batch-audio-addon', 0, 'None', mod] AJT Pitch Accent ['1225470483', 2022-01-04T12:33, 'None', mod] Advanced Browser ['874215009', 2022-09-26T17:28, 'None', ''] AnkiConnect ['2055492159', 2023-04-11T10:20, 'None', ''] AnkiWebView Inspector ['31746032', 2022-04-08T12:44, 'None', ''] AutoReorder ['757527607', 2022-05-16T01:09, 'None', mod] AwesomeTTS - Add speech to your flashcards ['1436550454', 2023-04-09T19:00, 'None', ''] Chinese Support Redux v0142 ['1128979221', 2021-03-28T19:19, 'None', mod] Extended Card Stats During Review ['1008566916', 2017-08-29T11:59, 'None', ''] FSRS4Anki Helper ['759844606', 2023-05-20T23:32, 'None', mod] Kanji Grid ['909972618', 2019-01-09T14:40, 'None', mod] Learning Step and Review Interval Retention ['1949865265', 2022-08-28T13:21, 'None', ''] Local Audio Server for Yomichan ['1045800357', 2023-05-06T04:22, 'None', ''] Minimal Flat Big Buttons compatible with ReMemorize Buttons ['1042429613', 2020-03-11T04:09, 'None', ''] More Overview Stats 21 ['738807903', 2021-07-30T12:13, 'None', mod] Progress Graphs and Stats for Learned and Matured Cards ['266436365', 2020-03-28T23:26, 'None', ''] Removes Empty Note Types for 21 ['530953383', 2019-06-12T07:11, 'None', ''] Review Heatmap ['1771074083', 2022-06-29T18:43, 'None', ''] Straight Reward ['957961234', 2022-12-12T05:49, 'None', ''] Study Time Stats ['1247171202', 2023-05-26T10:39, 'None', ''] True Retention by Card Maturity Simplified ['1779060522', 2020-06-28T06:45, 'None', ''] VOICEVOX Japanese Text To Speech Audio Generator ['366960193', 2023-03-24T02:16, 'None', mod] Yomichan Forvo Server ['580654285', 2022-10-25T22:06, 'None', ''] anki-forvo-dl - Forvo Pronunciation Downloader fully automatic ['858591644', 2022-07-31T04:26, 'None', ''] ===IDs of active AnkiWeb add-ons=== 1008566916 1042429613 1045800357 1128979221 1225470483 1247171202 1436550454 1771074083 1779060522 1949865265 2055492159 266436365 31746032 366960193 530953383 580654285 738807903 757527607 759844606 858591644 874215009 909972618 957961234 ===Add-ons (inactive)=== (add-on provided name [Add-on folder, installed at, version, is config changed]) '' ['findCommonWordsKanji', 0, 'None', ''] Anki Simulator ['817108664', 2021-08-07T12:24, 'None', ''] Anki Zoom ['538879081', 2020-04-03T17:20, 'v1.1.3', mod] Ankimote - remote to control Anki from your phone ['149004221', 2021-08-11T09:57, 'None', ''] CrowdAnki JSON exportimport Edit history Collaborate on deck creation ['1788670778', 2023-02-03T16:58, 'None', ''] More Decks Stats and Time Left ['1556734708', 2022-10-09T05:05, 'None', ''] Puppy Reinforcement ['1722658993', 2020-03-02T12:23, 'None', ''] Quick Easy ['1834460432', 2018-04-05T04:58, 'None', ''] Remaining time for Anki 21 ['1508357010', 2020-12-13T06:14, '20.12.13i151', ''] Review Heatmap ['review_heatmap', 2020-04-30T06:23, 'None', ''] Speed Focus Mode auto-alert auto-reveal auto-answer ['1046608507', 2022-12-16T03:24, 'None', ''] Touch Screen - draw and write on your cards ['1631622775', 2019-04-20T12:26, 'None', ''] True Retention ['613684242', 2017-11-19T12:43, 'None', '']

Additional Context It's not a large discrepancy, so it's not a big issue. I can upload my collection if it might help.

iamjustkoi commented 1 year ago

Hmm, sorry that's happening for you.

Just to double check, would you be alright with also sending a screenshot of your advanced settings too? Or maybe try sending the add-on's meta.json file (Add-ons -> Study Time Stats -> View Files, etc.), if you'd prefer that. Might be able to find out a bit more with that.

Either way, thanks for reporting the issue!

MarvNC commented 1 year ago

anki_Study_Time_Stats_Options_2023-05-27_09-49-58

{"name": "Study Time Stats", "mod": 1685122789, "min_point_version": 36, "max_point_version": 64, "branch_index": 0, "disabled": false, "config": {"Use_Toolbar_Options": true, "Week_Start": 6, "Use_Calendar_Range": true, "Range_Type": 2, "Custom_Days": 7, "Custom_Total_Text": "Total", "Custom_Range_Text": "Past %range", "Custom_Total_Hrs": "%total_hrs", "Custom_Range_Hrs": "%range_hrs", "Custom_Hrs_Text": "hrs", "Custom_Min_Text": "min", "Hide_Total_Stat": true, "Hide_Ranged_Stat": false, "Primary_Color": "#000000", "Secondary_Color": "#76bfb4", "Browser_Enabled": true, "Overview_Enabled": true, "Congrats_Enabled": true, "Include_Deleted_Reviews": true, "Use_Rollover_Hour": false, "Excluded_Deck_IDs": [], "Use_Decimal_Format": true, "cellsData": [{"title": "Total", "output": "", "titleColor": "#000000", "outputColor": "#76bfb4", "direction": "vertical", "range": -1, "useCalendar": true, "weekStart": 0, "days": 7, "hrsUnit": "hrs", "minUnit": "min", "html": "<div class=\"{{CellClass}}\">\n    <div style=\"color: {{TitleColor}};\">{{Title}}</div>\n    <div style=\"color: #76bfb4; font-weight: bold;\">%range_hrs</div>\n    <div style=\"color: #bf7676; font-weight: bold;\">%range_rev reviews</div>\n</div>\n"}, {"title": "Past %range", "output": "%range_hrs %range_rev", "titleColor": "#000000", "outputColor": "#76bfb4", "direction": "vertical", "range": 4, "useCalendar": true, "weekStart": 0, "days": 7, "hrsUnit": "hrs", "minUnit": "min", "html": "<div class=\"{{CellClass}}\">\n    <div style=\"color: {{TitleColor}};\">{{Title}}</div>\n    <div style=\"color: #76bfb4; font-weight: bold;\">%range_hrs</div>\n    <div style=\"color: #bf7676; font-weight: bold;\">%range_rev reviews</div>\n</div>\n"}], "winSize": [517, 620], "version": "2.0.2"}, "conflicts": [], "update_enabled": true}

Thanks!

iamjustkoi commented 1 year ago

anki_Study_Time_Stats_Options_2023-05-27_09-49-58

{"name": "Study Time Stats", "mod": 1685122789, "min_point_version": 36, "max_point_version": 64, "branch_index": 0, "disabled": false, "config": {"Use_Toolbar_Options": true, "Week_Start": 6, "Use_Calendar_Range": true, "Range_Type": 2, "Custom_Days": 7, "Custom_Total_Text": "Total", "Custom_Range_Text": "Past %range", "Custom_Total_Hrs": "%total_hrs", "Custom_Range_Hrs": "%range_hrs", "Custom_Hrs_Text": "hrs", "Custom_Min_Text": "min", "Hide_Total_Stat": true, "Hide_Ranged_Stat": false, "Primary_Color": "#000000", "Secondary_Color": "#76bfb4", "Browser_Enabled": true, "Overview_Enabled": true, "Congrats_Enabled": true, "Include_Deleted_Reviews": true, "Use_Rollover_Hour": false, "Excluded_Deck_IDs": [], "Use_Decimal_Format": true, "cellsData": [{"title": "Total", "output": "", "titleColor": "#000000", "outputColor": "#76bfb4", "direction": "vertical", "range": -1, "useCalendar": true, "weekStart": 0, "days": 7, "hrsUnit": "hrs", "minUnit": "min", "html": "<div class=\"{{CellClass}}\">\n    <div style=\"color: {{TitleColor}};\">{{Title}}</div>\n    <div style=\"color: #76bfb4; font-weight: bold;\">%range_hrs</div>\n    <div style=\"color: #bf7676; font-weight: bold;\">%range_rev reviews</div>\n</div>\n"}, {"title": "Past %range", "output": "%range_hrs %range_rev", "titleColor": "#000000", "outputColor": "#76bfb4", "direction": "vertical", "range": 4, "useCalendar": true, "weekStart": 0, "days": 7, "hrsUnit": "hrs", "minUnit": "min", "html": "<div class=\"{{CellClass}}\">\n    <div style=\"color: {{TitleColor}};\">{{Title}}</div>\n    <div style=\"color: #76bfb4; font-weight: bold;\">%range_hrs</div>\n    <div style=\"color: #bf7676; font-weight: bold;\">%range_rev reviews</div>\n</div>\n"}], "winSize": [517, 620], "version": "2.0.2"}, "conflicts": [], "update_enabled": true}

Thanks!

Thanks for the follow-up! I'm actually having a decent amount of trouble reproducing this, to be honest.

The problem could be with having some specific setups I didn't write good enough tests for, maybe, just wanna double check, though.

Would you mind uploading your collection (minus media) too, now, actually?

MarvNC commented 1 year ago

Due to the github 25MB limit 😓 collection-2023-05-28@21-07-03.zip.001 collection-2023-05-28@21-07-03.zip collection-2023-05-28@21-07-03.zip.002 collection-2023-05-28@21-07-03.zip

iamjustkoi commented 1 year ago

Due to the github 25MB limit 😓

Yeah. always gotta find the workarounds lol

Thanks, though, will see what I can do!

iamjustkoi commented 1 year ago

Should now be fixed with the latest release!

Thanks again! 😄