ig3 / anki-limitnew Goto Github PK
View Code? Open in Web Editor NEWLimit the number of new cards in Anki
License: MIT License
Limit the number of new cards in Anki
License: MIT License
(Delete this: When setting the limits in the deck options, they don't get ported to the addon settings) <- figured out by reading the github page. A little confusing. Anyway...
Custom decks don't seem to be affected, but I haven't tested it a lot to be 100% sure. Can you confirm there's an issue yourself? As for me, I'll know for sure maybe in a week.
Anki normally starts within 2 seconds, With this add-on, it takes an extra 13 seconds. Is it possible to accelerate it?
Thanks for the add-on it's a lifesaver. Unfortunately I keep getting the error below when syncing causing it to disable the add-on
Syncing failed:
Traceback (most recent call last):
File "aqt/sync.py", line 429, in _sync
File "aqt/sync.py", line 409, in _abortingSync
File "anki/sync.py", line 137, in sync
File "anki/sync.py", line 219, in sanityCheck
File "anki/schedv2.py", line 69, in reset
File "anki/schedv2.py", line 378, in _resetNew
File "anki/schedv2.py", line 375, in _resetNewCount
File "anki/schedv2.py", line 209, in _walkingCount
File "anki/schedv2.py", line 477, in _deckNewLimitSingle
File "anki/hooks.py", line 407, in call
File "/Users/xxxxxx/Library/Application Support/Anki2/addons21/anki-limitnew-master/versions/new_hook.py", line 343, in schedulerNewLimitForSingleDeck
newLimit = myDeckNewLimitSingle(mw.col.sched, deck)
AttributeError: 'NoneType' object has no attribute 'sched
I noticed that some screens load slowlier with the add-on.
I can confirm this only for
Version 2.1.22 (0ecc189a)
Python 3.8.0 Qt 5.14.1 PyQt 5.14.1
old scheduler
Every time I open or close Anki I get the following error:
The error also prevents Anki from closing, I have to kill it in the task manager.
I've tried disabling all my other add-ons and still have the same error.
I copied August version the add-on from another computer and it works fine.
Any help would be greatly appreciated.
Hello. I really want to use this addon!!! its important for me because im working full time and studying after work so this is a great way to help me set anki to work me without overworking me... but i cant figure it out..! im good with anki i am familiar with all the setttings and preferences.
i have my workload limit set to 300, with my workload max set to 350. new cards/day set to 50.. so ideally i should have 49 new cards on days i have 301 cards due, and 30 cards new when i have 320 cards due.. but this addon is setting my new cards to 0 no matter what my workload is. even when my cards due is ~280 this addon isnt giving me any new cards. heres the screenshots
Between workloadLimit and workloadMax (and the various other places between limits and maxes), you're linearly decreasing new cards from whatever the standard new cards per day is down to 0, and then enforcing a hard limit of minimumNew. I think instead, you should make the linear transition go from newPerDay to minimumNew.
If the ratio is .5 and new cards per day is 20 with a minimum of 10, you should see 15 (halfway between those), not 10.
I'm sorry if that's confusing. I'm thinking it's something like changing add_on_2_1_28.py line 231 from
maxNew = max(deckMinimumNew, min(maxNew, int(round(newPerDay * (1 - ratio)))))
to
maxNew = max(deckMinimumNew, min(maxNew, int(round(deckMinimumNew + ((newPerDay-deckMinimumNew) * (1 - ratio)))))
and similarly for the rest of the calculations.
If you try to play around with the settings of the add-on and then uninstall it, you may not be able to get any new cards that day. I can't add any new-cards for the day except by increasing the new card limit in the custom study options.
Edit: I just read through the other issues, and it might have something to do with new cards being set to 0 again for some reason. I could get back to my real new-cards/day by reloading a backup (File -> Switch Profile -> Change User -> Load from backup). Doing so reverted the new cards to normal.
Edit2: Closing and reopening Anki in-between each modification of the deck/add-on options seems to fix the issue. Great add-on by the way!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.