Coder Social home page Coder Social logo

anki-enhanced-cloze's Introduction

anki-enhanced-cloze

anki-enhanced-cloze's People

Contributors

luzhe610 avatar

Stargazers

 avatar

Watchers

 avatar  avatar

anki-enhanced-cloze's Issues

Enhanced Cloze slows doesn the app

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("*")

Cannot add more than 20 clozes

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.