Passed
Push — master ( 19f245...563a46 )
by Jace
01:59
created

memegen.routes.custom   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 15
Duplicated Lines 0 %

Test Coverage

Coverage 75%

Importance

Changes 0
Metric Value
eloc 11
dl 0
loc 15
rs 10
c 0
b 0
f 0
ccs 3
cts 4
cp 0.75
wmc 1

1 Function

Rating   Name   Duplication   Size   Complexity  
A get() 0 7 1
1 1
from flask import Blueprint, render_template, current_app
0 ignored issues
show
introduced by
Unable to import 'flask'
Loading history...
2
from flask_cachecontrol import cache_for
0 ignored issues
show
introduced by
Unable to import 'flask_cachecontrol'
Loading history...
3
4 1
5
blueprint = Blueprint('custom-page', __name__)
6
7 1
8
@blueprint.route("/custom")
9
@cache_for(days=7)
10
def get():
11
    return render_template(
12
        'custom.html',
13
        fonts=sorted(current_app.font_service.all()),
14
        config=current_app.config,
15
    )
16