Exemple #1
0
def monthly_graph_by_chrome_type():
    years = movielistdb.read_watched_title()
    month_labels, sum, monthly_count = \
        movielistdb.get_monthly_count(years, lambda title: title['chrome_type'])
    return template('histgram.html',
                    x_labels=month_labels,
                    count=monthly_count,
                    title='カラー/モノクロ区別',
                    sum=sum)
Exemple #2
0
def monthly_graph_by_acquisition_type():
    years = movielistdb.read_watched_title()
    month_labels, sum, monthly_count = \
        movielistdb.get_monthly_count(years, lambda title: title['acquisition_type'])
    return template('histgram.html',
                    x_labels=month_labels,
                    count=monthly_count,
                    title='鑑賞方法',
                    sum=sum)
Exemple #3
0
def monthly_graph_by_category():
    years = movielistdb.read_watched_title()
    month_labels, sum, monthly_count = \
        movielistdb.get_monthly_count(years, lambda title: title['youga_houga'])
    return template('histgram.html',
                    x_labels=month_labels,
                    count=monthly_count,
                    title='洋画/邦画区別',
                    sum=sum)
Exemple #4
0
def monthly_graph_all():
    years = movielistdb.read_watched_title()
    month_labels, sum, monthly_count = \
        movielistdb.get_monthly_count(years, lambda title: '月ごと鑑賞数')
    return template('histgram.html',
                    x_labels=month_labels,
                    count=monthly_count,
                    title='月ごと鑑賞数',
                    sum=sum)
Exemple #5
0
def annual_graph_by_category():
    years = movielistdb.read_watched_title()
    year_labels, sum, year_count = movielistdb.get_annual_count(
        years, lambda title: title['youga_houga'])
    return template('histgram.html',
                    x_labels=year_labels,
                    count=year_count,
                    title='洋画/邦画区別',
                    sum=sum)
Exemple #6
0
def annual_graph_all():
    try:
        years = movielistdb.read_watched_title()
        year_labels, sum, year_count = movielistdb.get_annual_count(
            years, lambda title: '年ごと鑑賞数')
        return template('histgram.html',
                        x_labels=year_labels,
                        count=year_count,
                        title='年ごと鑑賞数',
                        sum=sum)
    except Exception as e:
        return str(e)
Exemple #7
0
def titlelist():
    try:
        return template('annuallist.html',
                        movielist=movielistdb.read_watched_title())
    except Exception as e:
        return str(e)