(self)
AddCards objects
AddCards objects
AddCards objects
def show_browser_on_added_today(self):
    """AddCards objects"""
    browser = aqt.dialogs.open("Browser", self.mw)
    browser.form.searchEdit.lineEdit().setText("added:1")
    if anki21:
        browser.onSearchActivated()
    else:
        browser.onSearch()
    if u'noteCrt' in browser.model.activeCols:
        col_index = browser.model.activeCols.index(u'noteCrt')
        browser.onSortChanged(col_index, True)
    browser.form.tableView.selectRow(0)
def show_browser_on_added_today ( self ) : browser = aqt . dialogs . open ( "Browser" , self . mw ) browser . form . searchEdit . lineEdit ( ) . setText ( "added:1" ) if anki21 : browser . onSearchActivated ( ) else : browser . onSearch ( ) if u'noteCrt' in browser . model . activeCols : col_index = browser . model . activeCols . index ( u'noteCrt' ) browser . onSortChanged ( col_index , True ) browser . form . tableView . selectRow ( 0 )