Skip to content

Commit

Permalink
fix: remove max_length option in Changed schema
Browse files Browse the repository at this point in the history
  • Loading branch information
stat-kwon committed Sep 21, 2023
1 parent 6f2b0fa commit 35bdb87
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
2 changes: 0 additions & 2 deletions src/cloudforet/cost_analysis/manager/cost_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,6 @@ def _make_cost_data(self, results):

self._check_required_fields(result)

result['additional_info']['Account'] = result.get('account')

try:
data = {
'cost': result['cost'],
Expand Down
6 changes: 3 additions & 3 deletions src/cloudforet/cost_analysis/model/job_model.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from schematics.models import Model
from schematics.types import ListType, DateTimeType, StringType
from schematics.types import ListType, StringType
from schematics.types.compound import ModelType

__all__ = ['Tasks']
Expand All @@ -14,8 +14,8 @@ class Task(Model):


class Changed(Model):
start = StringType(required=True, max_length=7)
end = StringType(default=None, max_length=7)
start = StringType(required=True)
end = StringType(default=None)


class Tasks(Model):
Expand Down

0 comments on commit 35bdb87

Please sign in to comment.