🚨 Cleanup imports
This commit is contained in:
parent
2232726e7c
commit
16f15a3d65
4 changed files with 10 additions and 9 deletions
|
|
@ -1,2 +1 @@
|
||||||
from . import models
|
from . import models, routes
|
||||||
from . import routes
|
|
||||||
|
|
|
||||||
|
|
@ -1,10 +1,11 @@
|
||||||
from ohmyapi.db import Model, field
|
|
||||||
from ohmyapi_auth.models import User
|
|
||||||
|
|
||||||
from datetime import datetime
|
from datetime import datetime
|
||||||
from decimal import Decimal
|
from decimal import Decimal
|
||||||
from uuid import UUID
|
from uuid import UUID
|
||||||
|
|
||||||
|
from ohmyapi_auth.models import User
|
||||||
|
|
||||||
|
from ohmyapi.db import Model, field
|
||||||
|
|
||||||
|
|
||||||
class Team(Model):
|
class Team(Model):
|
||||||
id: UUID = field.data.UUIDField(primary_key=True)
|
id: UUID = field.data.UUIDField(primary_key=True)
|
||||||
|
|
|
||||||
|
|
@ -1,10 +1,10 @@
|
||||||
from ohmyapi.router import APIRouter, HTTPException, HTTPStatus
|
from typing import List
|
||||||
|
|
||||||
from ohmyapi.db.exceptions import DoesNotExist
|
from ohmyapi.db.exceptions import DoesNotExist
|
||||||
|
from ohmyapi.router import APIRouter, HTTPException, HTTPStatus
|
||||||
|
|
||||||
from . import models
|
from . import models
|
||||||
|
|
||||||
from typing import List
|
|
||||||
|
|
||||||
# Expose your app's routes via `router = fastapi.APIRouter`.
|
# Expose your app's routes via `router = fastapi.APIRouter`.
|
||||||
# Use prefixes wisely to avoid cross-app namespace-collisions.
|
# Use prefixes wisely to avoid cross-app namespace-collisions.
|
||||||
# Tags improve the UX of the OpenAPI docs at /docs.
|
# Tags improve the UX of the OpenAPI docs at /docs.
|
||||||
|
|
|
||||||
|
|
@ -1,2 +1,3 @@
|
||||||
from fastapi import APIRouter, Depends, HTTPException
|
|
||||||
from http import HTTPStatus
|
from http import HTTPStatus
|
||||||
|
|
||||||
|
from fastapi import APIRouter, Depends, HTTPException
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue