Exemple #1
0
def file_count():
    """
    Print the total number of files.
    """

    corpus = Corpus.from_env()
    click.echo(corpus.file_count)
Exemple #2
0
def file_count():

    """
    Print the total number of files.
    """

    corpus = Corpus.from_env()
    click.echo(corpus.file_count)
Exemple #3
0
    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
Exemple #4
0
    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