burtonator / polar-connect-anki

3 stars 2 forks source link

Fix for error: TypeError: Object of type RepeatedScalarFieldContainer is not JSON serializable #2

Open akoen opened 4 years ago

akoen commented 4 years ago

In recent versions of Anki, the polar connect add-on does not work and crashes with the above error. A similar error was fixed in the Anki Connect add-on, and it seems to work here too.

Tested on Anki version 2.1.26

See: [https://github.com/FooSoft/anki-connect/commit/e01544a538cf2efc9c72a516435ad85292c13f0f]() [https://github.com/FooSoft/anki-connect/commit/aa38f68b5e0737594fa7279e07cf63de86997658]()

roboticsdude60 commented 4 years ago

Can confirm this fix worked for me

AndreGDFeliciano commented 4 years ago

Solved it for me too, thank you!

Nonetheless, it could be more specific that you had to open the init.py doc and change the lines (use ctrl + F) to make those alterations, as an unexperienced progammer I struggled on thinking how could I do it.

akoen commented 4 years ago

Hey please let me know if I'm missing the point but the purpose of pull requests and github is to demonstrate what alterations were made to what files. It's well worth learning.