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

Complexity

Conditions 1

Size

Total Lines 3
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

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