-
Notifications
You must be signed in to change notification settings - Fork 31
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
Points not showing up in Habitica #67
Comments
Try creating a habit on Habitica called "Anki Points".
|
I do have one:
[image: image.png]
It seems like the problem is on the Anki plugin end, as it says it can't
connect, even though the internet is clearly working
…On Thu, Apr 18, 2019 at 5:48 PM eshapard ***@***.***> wrote:
Try creating a habit on Habitica called "Anki Points".
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#67 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AL3NAEM7CNQZKM2G2WFJXFTPRDUD7ANCNFSM4HGWOS5Q>
.
|
try deleting the habitica task and restarting anki.
|
I downloaded the add-on today for the first time and have experienced the same problem. Initially had no habit named Anki Points on Habitica, had to create one after reading this post. |
Error Caught exception: |
#71 I used the Python method too but nothing happened. |
Okay, so I did something. It kind of worked? It looked weird so I just deleted it - hoping it won't change anything since its written in the "notes" which is as far as I know plain text. And now it seems to be working. Will let you know if I get a bug. |
P.S.: I changed "sched" from 12 to 30 in order to increase difficulty. |
The string in the notes is not a bug. You must keep that there. That's how the addon keeps track of things across multiple devices and multiple sessions. Also, in which file did you delete line 388? And if you didn't delete the entire line, what change did you make? |
FYI: Habitica used to not show the notes, so this string that the addon sets wasn't noticeable unless you clicked on the habit... some time ago, they changed that and now notes are shown below each habit. It's a minor annoyance :-( |
So all I did was delete an empty line above this line. In my Mac's TextEdit app, it showed an empty line(blank line). All I did was delete the line above and aligned the text of line 388 with the line above. Restarted Anki and it started working. Pretty weird. While seeing the code in GitHub there was no empty line, I don't know why there was in my Mac's, but there was. |
That's not a bug. You must keep that string in Habitica; it's part of
how the addon works.
Quoting MedAnki (2019-05-30 10:41:58)
… So the only bug that I have been seeing since 7 hours is not in Anki but in Habitica.
The text I deleted from "notes"
> The only weird thing was that the in the "notes" past of the Habit, this was written :
"{"scoresincedate": 1559212199, "scorecount": 1, "sched": 12}".
It came back again and this is how it is seen in both the webpage and iOS app:
<img width="302" alt="image" src="https://user-images.githubusercontent.com/42865576/58652002-41602680-8330-11e9-8d9a-6f8b72923537.png">
And fixing this is beyond my level!
--
You are receiving this because you commented.
Reply to this email directly or view it on GitHub:
#67 (comment)
|
Oh yeah like you told me What I am saying is that in the code that was in my files, there was a blank line and deleting that line fixed it It can be a fluke or just the work of the #71 but it was the process that I went through |
Don't delete that stuff in the notes section of the Anki Points habit.
That's where the addon keeps track of your progress. By keeping data on
Habitica, we solve the problem of syncing it between different devices.
So in which file did you delete line 388?
Quoting MedAnki (2019-05-30 03:50:12)
… Okay, so I did something. It kind of worked?
So I followed #71 exactly.
Whatever it had to do - it did, the add-on did not work but it reduced the number of errors.
I have no knowledge in regards to coding and all but since I can read English I tried to follow the errors - the files and location - as showed on the Anki's screen.
So there was this error pointed at line 388. I realised that all the other codes didn't have an extra line and only this one did. So I deleted that extra line and restarted Anki. The add-on worked. It even made the Habit in Habitica. Scoring also started. The only weird thing was that the in the "notes" past of the Habit, this was written :
"{"scoresincedate": 1559212199, "scorecount": 1, "sched": 12}".
It looked weird so I just deleted it - hoping it won't change anything since its written in the "notes" which is as far as I know plain text.
And now it seems to be working. Will let you know if I get a bug.
--
You are receiving this because you commented.
Reply to this email directly or view it on GitHub:
#67 (comment)
|
Refer to this |
Sorry, I sent some of those comments through email, and for some reason it took a long time for them to show up in the thread so I just posted comments directly on the site.... that's why i seem to be repeating myself. |
Still not working. Tried deleting my "Anki Points" Habit, letting the plugin try to add it automatically; it didn't. Still getting the message saying it can't connect. An error occurred in an add-on. Traceback (most recent call last): |
Try using my method..? |
I also tried searching for any extra lines in between lines of code (mine seems to be pointing towards line 336) and deleting them. Still no luck/same error message saying it can't connect. |
This comment has been minimized.
This comment has been minimized.
First follow #71 method, |
Would the fact that I'm using Anki 2.0 affect whether or not to follow #71 ? Also am I copy/pasting that entire post or just what is in the "white" (or both the white and grey boxes?) |
Oh I have Anki 2.1 You were supposed to copy paste the whole thing. things other than the box too. I am just trying to create a similar situation for you so that it might work for you. I am a medical student and I have little to no idea about coding! :) |
|
try updating it to 2.1? |
Delete the Habitica add on, start from fresh. Other than this even my hands are tide man |
When I reach the end of my "box" in Anki, the points don't show on Habitica. I've tried syncing, "Score Habitica Backlog", signing out and back in of both Anki and Habitica...now I get this message:
An error occurred in an add-on. Please post on the add-on forum: https://anki.tenderapp.com/discussions/add-ons
Traceback (most recent call last):
File "aqt/progress.pyc", line 69, in handler
File "aqt/main.pyc", line 110, in setupProfile
File "aqt/main.pyc", line 244, in loadProfile
File "anki/hooks.pyc", line 26, in runHook
File "/Users/benedictjfrederickiv/Library/Application Support/Anki2/addons/ankihabitica.py", line 718, in grab_profile
if ah.settings.check_db_on_profile_load and ah.settings.configured and ah.habitica.grab_scorecounter('Anki Points') and compare_score_to_db():
File "/Users/benedictjfrederickiv/Library/Application Support/Anki2/addons/AnkiHabitica/habitica_class.py", line 336, in grab_scorecounter
if self.missing[habit]:
KeyError: 'Anki Points'
When I try to "Score Habitica Backlog":
The text was updated successfully, but these errors were encountered: