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

memegen.routes.custom.get()   A

Complexity

Conditions 1

Size

Total Lines 7
Code Lines 7

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
cc 1
eloc 7
nop 0
dl 0
loc 7
rs 10
c 0
b 0
f 0
ccs 0
cts 1
cp 0
crap 2
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