glutanimate / review-heatmap

Anki add-on to help you keep track of your review activity
https://ankiweb.net/shared/info/1771074083
Other
1.2k stars 89 forks source link

Can't see cards through heat map #125

Open xflashkey opened 3 years ago

xflashkey commented 3 years ago

Problem description

I Can't access cards through heat map.

image

image

Checklist

Please replace the space inside the brackets with an x if the following items apply:

Information about your Anki set-up

Please open Anki, go to Help → About, click on "Copy Debug Info", and paste the result between the backticks below (if the button does not appear you are using an older version of Anki 2.1 and will need to update first):


    Anki 2.1.46 (94913ec2) Python 3.8.6 Qt 5.14.2 PyQt 5.14.2
    Platform: Windows 10
    Flags: frz=True ao=True sv=2
    Add-ons, last update check: 2021-08-10 22:18:06

    ===Add-ons (active)===
    (add-on provided name [Add-on folder, installed at, version, is config changed])
    Advanced Browser ['874215009', 2021-07-22T16:14, 'None', '']
    Advanced Review Bottom Bar ['1136455830', 2021-08-03T09:27, 'None', '']
    Batch Editing ['291119185', 2019-06-02T13:47, 'None', '']
    Cloze Overlapper for Anki 21 ['109531687', 2021-01-11T22:12, 'None', '']
    Custom Background Image and Gear Icon ['1210908941', 2021-08-05T11:58, 'None', '']
    Fastbar- with nightmode support ['46611790', 2021-05-18T19:50, 'None', '']
    Image Occlusion Enhanced for Anki 21 alpha ['1374772155', 2020-04-27T21:21, 'None', '']
    Puppy Reinforcement ['1722658993', 2020-03-02T15:23, 'None', '']
    Quick tagging 21 ['304770511', 2020-02-11T01:17, 'None', '']
    Review Heatmap ['review_heatmap', 2020-04-30T08:23, 'None', '']
    Search and Replace Tags ['138501288', 2017-08-29T13:58, 'None', '']
    Searching PDF Reading  Note-Taking in Add Dialog ['1781298089', 2021-06-21T11:05, 'None', mod]

    ===IDs of active AnkiWeb add-ons===
    109531687 1136455830 1210908941 1374772155 138501288 1722658993 1781298089 291119185 304770511 46611790 874215009

    ===Add-ons (inactive)===
    (add-on provided name [Add-on folder, installed at, version, is config changed])

Error message (if any)

If you've received an error message, please copy and paste it between the backticks below:

kenwardt commented 2 years ago

Thought I might as well post my manual solution if anyone had this problem like me.

  1. Open the Review Heatmap source code folder via Tools > Add-ons > View Files
  2. Open links.py in your editor of choice
  3. Replace Line 172 to the following:

Original: search_context.card_ids = found_ids New: search_context.search = "cid:" + (",".join(map(str, found_ids)) or "0")

  1. Restart Anki

Why does the original code not work? My guess is browser_will_search's search_context has deprecated the card_ids key or rid browser searching no longer works. My fix simply replaces the internal search_context query with a concatenated string of results, utilizing the default cid search capability.