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

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

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

    corpus = Corpus.from_env()
    click.echo(corpus.file_count)
Beispiel #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
Beispiel #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