Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion app/models/enum/assets.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from enum import Enum
from typing import Any, Dict

from app.models.enum.sources import SourceType
from .sources import SourceType


class AssetStatus(str, Enum):
Expand Down
18 changes: 0 additions & 18 deletions app/models/enum/creation_options.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,24 +61,6 @@ class PartitionType(str, Enum):
range = "range"


class PGType(str, Enum):
bigint = "bigint"
boolean = "boolean"
character_varying = "character varying"
date = "date"
double_precision = "double precision"
geometry = "geometry"
integer = "integer"
jsonb = "jsonb"
numeric = "numeric"
smallint = "smallint"
text = "text"
time = "time"
timestamp = "timestamp"
uuid = "uuid"
xml = "xml"


class ColorMapType(str, Enum):
discrete = "discrete"
discrete_intensity = "discrete_intensity"
Expand Down
2 changes: 1 addition & 1 deletion app/models/enum/versions.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from sqlalchemy import Enum
from enum import Enum


class VersionStatus(str, Enum):
Expand Down
4 changes: 2 additions & 2 deletions app/models/orm/api_keys.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from app.application import db
from app.models.orm.base import Base
from ...application import db
from .base import Base


class ApiKey(Base):
Expand Down
4 changes: 2 additions & 2 deletions app/models/pydantic/authentication.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
from fastapi import Query
from pydantic import BaseModel, EmailStr

from app.models.pydantic.base import BaseRecord, StrictBaseModel
from app.models.pydantic.responses import Response
from .base import BaseRecord, StrictBaseModel
from .responses import Response


class SignUpRequestIn(StrictBaseModel):
Expand Down
6 changes: 3 additions & 3 deletions app/models/pydantic/downloads.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@

from pydantic import Field

from app.models.enum.creation_options import Delimiters
from app.models.pydantic.base import StrictBaseModel
from app.models.pydantic.geostore import Geometry
from ..enum.creation_options import Delimiters
from .base import StrictBaseModel
from .geostore import Geometry


class DownloadJSONIn(StrictBaseModel):
Expand Down
2 changes: 1 addition & 1 deletion app/models/pydantic/extent.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from typing import Optional

from ..pydantic.responses import Response
from .responses import Response
from .geostore import FeatureCollection


Expand Down
6 changes: 3 additions & 3 deletions app/models/pydantic/political.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
from fastapi.params import Query
from pydantic import Field, root_validator

from app.models.pydantic.base import StrictBaseModel
from app.models.pydantic.responses import Response
from app.settings.globals import ENV, per_env_admin_boundary_versions
from .base import StrictBaseModel
from .responses import Response
from ...settings.globals import ENV, per_env_admin_boundary_versions


class AdminIDLookupQueryParams(StrictBaseModel):
Expand Down
7 changes: 4 additions & 3 deletions app/models/pydantic/query.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
from typing import Optional, List

from app.models.enum.creation_options import Delimiters
from app.models.pydantic.base import StrictBaseModel
from app.models.pydantic.geostore import FeatureCollection, Geometry
from pydantic import Field

from ..enum.creation_options import Delimiters
from .base import StrictBaseModel
from .geostore import FeatureCollection, Geometry


class QueryRequestIn(StrictBaseModel):
geometry: Optional[Geometry]
Expand Down
2 changes: 1 addition & 1 deletion app/models/pydantic/sources.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from typing import List, Optional

from app.models.pydantic.base import StrictBaseModel
from .base import StrictBaseModel


class Source(StrictBaseModel):
Expand Down
4 changes: 2 additions & 2 deletions app/models/pydantic/statistics.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
PGTextType,
PGType,
)
from ..pydantic.geostore import FeatureCollection
from ..pydantic.responses import Response
from .geostore import FeatureCollection
from .responses import Response
from .base import StrictBaseModel


Expand Down
4 changes: 2 additions & 2 deletions app/models/pydantic/symbology.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

from pydantic import Field, StrictInt, validator

from app.models.enum.creation_options import ColorMapType
from app.models.pydantic.base import StrictBaseModel
from ..enum.creation_options import ColorMapType
from .base import StrictBaseModel


class RGB(StrictBaseModel):
Expand Down