memegen.routes.static.get_css()   A
last analyzed

Complexity

Conditions 1

Size

Total Lines 3
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 1
CRAP Score 1.125

Importance

Changes 0
Metric Value
cc 1
eloc 3
nop 1
dl 0
loc 3
rs 10
c 0
b 0
f 0
ccs 1
cts 2
cp 0.5
crap 1.125
1 1
from flask import Blueprint
0 ignored issues
show
introduced by
Unable to import 'flask'
Loading history...
2
3
4 1
blueprint = Blueprint('static', __name__, static_folder="../static")
5
6
7 1
@blueprint.route("/stylesheets/<filename>")
8
def get_css(filename):
9
    return blueprint.send_static_file("stylesheets/{}".format(filename))
10
11
12 1
@blueprint.route("/images/<filename>")
13
def get_image(filename):
14
    return blueprint.send_static_file("images/{}".format(filename))
15