memegen.routes._parser.parse_data()   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 3
dl 0
loc 3
rs 10
c 0
b 0
f 0
1
from webargs import core
2
from webargs.flaskparser import FlaskParser
3
4
parser = FlaskParser(('form', 'data'))
5
6
7
@parser.location_handler('data')
8
def parse_data(request, name, field):
9
    return core.get_value(request.data, name, field)
10