aiteamutils 0.2.112__tar.gz → 0.2.113__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {aiteamutils-0.2.112 → aiteamutils-0.2.113}/PKG-INFO +1 -1
- {aiteamutils-0.2.112 → aiteamutils-0.2.113}/aiteamutils/validators.py +2 -0
- aiteamutils-0.2.113/aiteamutils/version.py +2 -0
- aiteamutils-0.2.112/aiteamutils/version.py +0 -2
- aiteamutils-0.2.112/app/project/models.py +0 -22
- {aiteamutils-0.2.112 → aiteamutils-0.2.113}/.cursorrules +0 -0
- {aiteamutils-0.2.112 → aiteamutils-0.2.113}/.gitignore +0 -0
- {aiteamutils-0.2.112 → aiteamutils-0.2.113}/README.md +0 -0
- {aiteamutils-0.2.112 → aiteamutils-0.2.113}/aiteamutils/__init__.py +0 -0
- {aiteamutils-0.2.112 → aiteamutils-0.2.113}/aiteamutils/base_model.py +0 -0
- {aiteamutils-0.2.112 → aiteamutils-0.2.113}/aiteamutils/base_repository.py +0 -0
- {aiteamutils-0.2.112 → aiteamutils-0.2.113}/aiteamutils/base_service.py +0 -0
- {aiteamutils-0.2.112 → aiteamutils-0.2.113}/aiteamutils/cache.py +0 -0
- {aiteamutils-0.2.112 → aiteamutils-0.2.113}/aiteamutils/config.py +0 -0
- {aiteamutils-0.2.112 → aiteamutils-0.2.113}/aiteamutils/database.py +0 -0
- {aiteamutils-0.2.112 → aiteamutils-0.2.113}/aiteamutils/enums.py +0 -0
- {aiteamutils-0.2.112 → aiteamutils-0.2.113}/aiteamutils/exceptions.py +0 -0
- {aiteamutils-0.2.112 → aiteamutils-0.2.113}/aiteamutils/security.py +0 -0
- {aiteamutils-0.2.112 → aiteamutils-0.2.113}/pyproject.toml +0 -0
- {aiteamutils-0.2.112 → aiteamutils-0.2.113}/setup.py +0 -0
@@ -248,6 +248,8 @@ def date_validator(*field_names: str):
|
|
248
248
|
@classmethod
|
249
249
|
def validate(cls, value: Any, info: Any) -> Any:
|
250
250
|
try:
|
251
|
+
if value == "" or value is None:
|
252
|
+
return None
|
251
253
|
return Validator.validate_date(value, field_name)
|
252
254
|
except CustomException as e:
|
253
255
|
raise e
|
@@ -1,22 +0,0 @@
|
|
1
|
-
from sqlalchemy import String, Date, Enum
|
2
|
-
from sqlalchemy.dialects.postgresql import JSONB
|
3
|
-
from sqlalchemy.orm import Mapped, mapped_column, relationship
|
4
|
-
from typing import Optional, List, Dict, Any, TYPE_CHECKING
|
5
|
-
from datetime import datetime, date
|
6
|
-
from pydantic import Field
|
7
|
-
|
8
|
-
from aiteamutils.base_model import BaseColumn, BaseSchema
|
9
|
-
from aiteamutils.exceptions import CustomException, ErrorCode
|
10
|
-
from aiteamutils.validators import date_validator
|
11
|
-
from app.utils.enums import ProjectStatus
|
12
|
-
|
13
|
-
if TYPE_CHECKING:
|
14
|
-
from app.task.models import Task
|
15
|
-
|
16
|
-
@date_validator('start_date', 'end_date')
|
17
|
-
class BaseProjectSchema(BaseSchema):
|
18
|
-
title: Optional[str] = None
|
19
|
-
user_ulid: Optional[str] = None
|
20
|
-
start_date: Optional[date] = None
|
21
|
-
end_date: Optional[date] = None
|
22
|
-
status: Optional[ProjectStatus] = None
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|