Skip to content

Commit

Permalink
fix: validation last update timestamp type is int or float.
Browse files Browse the repository at this point in the history
  • Loading branch information
oyurekten committed Aug 30, 2024
1 parent fe2aba1 commit 64c65fa
Show file tree
Hide file tree
Showing 2 changed files with 618 additions and 542 deletions.
6 changes: 3 additions & 3 deletions metabolights_utils/provider/submission_model.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from typing import List
from typing import List, Union

from pydantic import BaseModel

Expand All @@ -25,9 +25,9 @@ class Section(BaseModel):
class Validation(BaseModel):
version: str = ""
status: str = ""
timig: float = 0.0
timig: Union[float, int] = 0.0
last_update_time: str = ""
last_update_timestamp: float = 0.0
last_update_timestamp: Union[float, int] = 0
validations: List[Section] = []


Expand Down
Loading

0 comments on commit 64c65fa

Please sign in to comment.