()
Main function. Invoked on clicking menu entry
Main function. Invoked on clicking menu entry
Main function . Invoked on clicking menu entry
def onOrganizeTask():
    """Main function. Invoked on clicking menu entry"""
    conf = mw.col.conf
    today = mw.col.sched.today # today in days since col creation time
   
    if WARN_ON_MULTIPLE_EXECUTIONS:
        # check if we've already performed tasks today:
        last = conf.get("deckOrgLast", None)
        if last and last == today:
            q = ("You have already performed this task today."
                " Are you sure you want to proceed?")
            ret = askUser(q)
            if not ret:
                return False
    
    performDeckOrgActions()
    
    conf["deckOrgLast"] = today
    mw.col.setMod()
def onOrganizeTask ( ) : conf = mw . col . conf today = mw . col . sched . today # today in days since col creation time if WARN_ON_MULTIPLE_EXECUTIONS : # check if we've already performed tasks today: last = conf . get ( "deckOrgLast" , None ) if last and last == today : q = ( "You have already performed this task today." " Are you sure you want to proceed?" ) ret = askUser ( q ) if not ret : return False performDeckOrgActions ( ) conf [ "deckOrgLast" ] = today mw . col . setMod ( )