memegen.routes._parser   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 10
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 7
dl 0
loc 10
rs 10
c 0
b 0
f 0
wmc 1

1 Function

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