We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9a1bc00 commit f24cd19Copy full SHA for f24cd19
services/web/server/src/simcore_service_webserver/announcements/_models.py
@@ -9,7 +9,7 @@
9
# - parse+validate from redis
10
# - schema in the response
11
class Announcement(BaseModel):
12
- id: str # noqa: A003
+ id: str
13
products: list[str]
14
start: datetime
15
end: datetime
@@ -20,7 +20,7 @@ class Announcement(BaseModel):
20
21
@field_validator("end")
22
@classmethod
23
- def check_start_before_end(cls, v, info: ValidationInfo):
+ def _check_start_before_end(cls, v, info: ValidationInfo):
24
if start := info.data.get("start"):
25
end = v
26
if end <= start:
0 commit comments