Compare commits
2 Commits
master
...
98abc79a8e
| Author | SHA1 | Date | |
|---|---|---|---|
| 98abc79a8e | |||
| a3e3e568b4 |
@@ -5,7 +5,7 @@ from app.routers import acquire
|
||||
from app.routers import release
|
||||
|
||||
from app.storage import mongo
|
||||
from app.daemons import base
|
||||
from daemons import base
|
||||
|
||||
|
||||
class Daemon(base.Daemon):
|
||||
|
||||
@@ -1,11 +1,14 @@
|
||||
import datetime
|
||||
import fastapi
|
||||
import pydantic
|
||||
|
||||
from app.storage.mongo import locks
|
||||
from app.utils import time
|
||||
|
||||
|
||||
class RequestBody(pydantic.BaseModel):
|
||||
name: str
|
||||
ttl: int
|
||||
|
||||
|
||||
router = fastapi.APIRouter()
|
||||
|
||||
Reference in New Issue
Block a user