Total Complexity | 0 |
Total Lines | 21 |
Duplicated Lines | 0 % |
Changes | 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 |