-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
JS API: Add Remaining Card Properties #6766
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
JS API: Add Remaining Card Properties #6766
Conversation
|
@Anthropos888 @infinyte7 Does the format of these properties seem sensible to you guys? |
|
Potential discussion points:
|
Arthur-Milchior
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I do like the idea. Is there any reason why you add access to those values, and not all values from the database simultaneously ?
AnkiDroid/src/main/java/com/ichi2/anki/AbstractFlashcardViewer.java
Outdated
Show resolved
Hide resolved
|
The value stored in Ankidroid should be passed and details about changing it, should be provided in wiki. It will help in designing card with exact numbers. For example. eta is passed, not eta*60. But if it needs to changed then also okay. |
|
javascript can consume unix epoch timestamps directly in javascript only has a |
mikehardy
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
comments on naming and datatypes
|
Other methods in the class are returning I'll return these until we decide to move to |
|
Noting: |
78e1f6c to
5d388b2
Compare
|
Pushed - added all properties as requested by Arthur. Names and data types now match the AnkiDroid codebase |
factor, id, mod, nid, type, did, left, odid, odue Fixes 5587
5d388b2 to
7b5d412
Compare
mikehardy
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fantastic
Purpose / Description
Properties weren't available and were requested. Added them all:
factor, id, mod, nid, type, did, left, odid, odueFixes
Fixes #5587
Approach
Provide the properties
How Has This Been Tested?
Untested
Checklist
ifstatements)