Skip to content

Commit

Permalink
🎨 black format
Browse files Browse the repository at this point in the history
  • Loading branch information
Viicos committed Aug 15, 2022
1 parent dab6c8b commit efd03a2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
4 changes: 1 addition & 3 deletions src/objects/api/v2/filters.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,7 @@ class ObjectRecordFilterSet(FilterSet):
min_length=1,
max_length=1000,
)
typeVersion = filters.NumberFilter(
field_name="version"
)
typeVersion = filters.NumberFilter(field_name="version")
date = filters.DateFilter(
method="filter_date",
help_text=_(
Expand Down
4 changes: 2 additions & 2 deletions src/objects/utils/serializers.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,13 +36,13 @@ def build_spec_field(spec, name, value, ui):


def get_field_names(data: Dict[str, fields.Field]) -> List[str]:
""" return list of names for all serializer fields. Supports nesting"""
"""return list of names for all serializer fields. Supports nesting"""
names_and_sources = get_field_names_and_sources(data)
return [name for name, source in names_and_sources]


def get_field_names_and_sources(data: Dict[str, fields.Field]) -> List[Tuple[str, str]]:
""" return list of (name, source) for all serializer fields. Supports nesting"""
"""return list of (name, source) for all serializer fields. Supports nesting"""
names_and_sources = []
for key, value in data.items():
if isinstance(value, dict):
Expand Down

0 comments on commit efd03a2

Please sign in to comment.