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

Can't see cards through heat map #125

Open
5 tasks done
xflashkey opened this issue Aug 11, 2021 · 1 comment
Open
5 tasks done

Can't see cards through heat map #125

xflashkey opened this issue Aug 11, 2021 · 1 comment
Labels
bug Something isn't working

Comments

@xflashkey
Copy link

xflashkey commented Aug 11, 2021

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:

  • I've restarted Anki to see if it helps
  • I've verified that I use the latest version of the add-on by redownloading it from AnkiWeb
  • I've verified that I use the latest version of Anki by checking at https://apps.ankiweb.net#download
  • I've tried to disable other add-ons to see if there are any interactions present.
  • I've checked if anyone else reported this problem before by looking through the issue reports. I also checked to see if there is a section about known issues in the add-on description, documentation, or README.

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:

@xflashkey xflashkey added the bug Something isn't working label Aug 11, 2021
@kenwardt
Copy link

kenwardt commented Jan 3, 2022

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants