luzhe610 / anki-enhanced-cloze Goto Github PK
View Code? Open in Web Editor NEWLicense: GNU General Public License v3.0
License: GNU General Public License v3.0
Hey ,
if you're still working on the addon sometimes I have another request, which is rather major.
Unfortunately the addon in its current state IMMENSELY slows down the app. Not just when creating cards but everywhere, especially annoying in the browser.
Someone in the comments suggested to modify this "
code. So far what has worked for me is this, which does seem to work somehow, but breaks some other stuff (like being able to use ENhanced cloze for both basic and cloze type cards which was very useful). Also there seem to be more error messages.
To my request, since I unfortunately suck at coding.
Would you know how this slow-down could be resolved? It would be really helpful because your addon is fucking great.
Thanks again for creating.
Regards,
ORIGINAL
def update_all_enhanced_clozes_in_browser(self, evt=None):
browser = self
mw = browser.mw
mw.checkpoint("Update Enhanced Clozes")
mw.progress.start()
browser.model.beginReset()
update_all_enhanced_cloze(self)
browser.model.endReset()
mw.requireReset()
mw.progress.finish()
mw.reset()
def update_all_enhanced_cloze(self):
mw = self.mw
nids = mw.col.findNotes("*")
for nid in nids:
note = mw.col.getNote(nid)
if not check_model(note.model()):
continue
generate_enhanced_cloze(note)
note.flush()
MY VERSION (ANKI IS WORKING PERFECTLY NOW)
def update_all_enhanced_clozes_in_browser(self, evt=None):
browser = self
mw = browser.mw
def update_all_enhanced_cloze(self):
mw = self.mw
nids = mw.col.findNotes("*")
Good evening,
First of all I want to thank you for this awesome addon,
I have been using this addon for the last six months, after adding 40 extra fields to be able to generate up to 60 clozes cards from one note.
I then modified the script, replacing the default "20" to "60" ; however, even after updating the enhanced clozes in browser, it still won't generate more than (the default) 20 cards.
I'm really sorry to tell you such things, that you might consider as easy to fix, but I don't have the coding knowledge required.
I'm ready to pay for it,
Thanks a lot,
M-A
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.