Passed
Push — master ( 38bed0...e25529 )
by torrua
01:14
created

app.api.schemas.syllable   A

Complexity

Total Complexity 0

Size/Duplication

Total Lines 21
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 0
eloc 10
dl 0
loc 21
rs 10
c 0
b 0
f 0
1
# -*- coding:utf-8 -*-
2
"""
3
SyllableSchema module
4
"""
5
6
from loglan_core import Syllable
7
8
from app.api.schemas import ma
9
10
11
class SyllableSchema(ma.SQLAlchemyAutoSchema):
12
    class Meta:
13
        model = Syllable
14
        exclude = ("created", "updated")
15
16
17
syllable_schema_nested = SyllableSchema(only=Syllable.attributes_basic())
18
syllable_schema_full = SyllableSchema(only=Syllable.attributes_extended())
19
20
blue_print_export = (Syllable, syllable_schema_nested, syllable_schema_full)
21