Skip to content

Commit

Permalink
Avoid marshmallow deprecation warning
Browse files Browse the repository at this point in the history
(default -> dump_default)
  • Loading branch information
clenk committed Feb 8, 2024
1 parent 20decfa commit 059c593
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/objects/c_operation.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ class InvalidOperationStateError(Exception):


class OperationOutputRequestSchema(ma.Schema):
enable_agent_output = ma.fields.Boolean(default=False)
enable_agent_output = ma.fields.Boolean(dump_default=False)


class OperationSchema(ma.Schema):
Expand Down
2 changes: 1 addition & 1 deletion app/objects/secondclass/c_link.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ class Meta:
relationships = ma.fields.List(ma.fields.Nested(RelationshipSchema()))
used = ma.fields.List(ma.fields.Nested(FactSchema()))
unique = ma.fields.String()
collect = ma.fields.DateTime(format=BaseObject.TIME_FORMAT, default='')
collect = ma.fields.DateTime(format=BaseObject.TIME_FORMAT, dump_default='')
finish = ma.fields.String()
ability = ma.fields.Nested(AbilitySchema())
executor = ma.fields.Nested(ExecutorSchema())
Expand Down

0 comments on commit 059c593

Please sign in to comment.