Skip to content

Commit ec4d3c5

Browse files
committed
Fix project id bug
1 parent d6ab120 commit ec4d3c5

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

noko_client/schemas/entries_parameters.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ class GetNokoEntriesParameters(BaseModel):
6060

6161
user_ids: str | list | None = None
6262
description: str | None = None
63-
project_ids: str | list | None = None
63+
project_ids: str | int | list | None = None
6464
tag_ids: str | list | None = None
6565
tag_filter_type: str | None = None
6666
from_: str | datetime | None = Field(alias="from", default=None)

noko_client/schemas/validators.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,8 @@ def format_date(value: str | datetime) -> str:
2626

2727
def format_id_lists(value: str | int | list | None) -> str | None:
2828
"""If IDs provided as lists, convert to a comma separated string."""
29+
if value is None:
30+
return None
2931
return list_to_string(value) if isinstance(value, list) else str(value)
3032

3133

0 commit comments

Comments
 (0)