def file_count(): """ Print the total number of files. """ corpus = Corpus.from_env() click.echo(corpus.file_count)
def file_count(): """ Print the total number of files. """ corpus = Corpus.from_env() click.echo(corpus.file_count)
def insert_documents(cls): """ Insert a document row for each syllabus in the corpus. """ for syllabus in Corpus.from_env().syllabi_bar(): try: cls.create(path=syllabus.relative_path) except: pass
def insert_documents(cls): """ Insert a document row for each syllabus in the corpus. """ for syllabus in Corpus.from_env().syllabi_bar(): try: cls.create(path=syllabus.relative_path) except: pass