Refreshing Current Card

I created an add-on that basically appends a text at the end of the “back” side of the note during the review. But the changes are not visible immediately rather, it becomes visible after exiting and entering the review mode again. Basically, is there a command or a code piece that refresh the review page like when we manually edit the current card.

Try mw.reviewer.refresh_if_needed() (Not tested).

Unfortunately, your solution did not work out. I used mw.reset() instead but it didn’t do the job exactly. This command close the back of the card. What I want is refreshing should happen without closing the back of the card.

_redraw_current_card()

3 Likes

Thanks! It works like exactly what I want.