memegen.routes.static   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 15
Duplicated Lines 0 %

Test Coverage

Coverage 66.67%

Importance

Changes 0
Metric Value
eloc 9
dl 0
loc 15
rs 10
c 0
b 0
f 0
ccs 4
cts 6
cp 0.6667
wmc 2

2 Functions

Rating   Name   Duplication   Size   Complexity  
A get_css() 0 3 1
A get_image() 0 3 1
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