mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-02-14 23:25:25 +03:00
use enum for type
This commit is contained in:
parent
28ff075b58
commit
a690af1ba8
@ -2,6 +2,8 @@ from typing import Optional
|
|||||||
|
|
||||||
from pydantic import BaseModel
|
from pydantic import BaseModel
|
||||||
|
|
||||||
|
from frigate.events.types import RegenerateDescriptionEnum
|
||||||
|
|
||||||
|
|
||||||
class RegenerateQueryParameters(BaseModel):
|
class RegenerateQueryParameters(BaseModel):
|
||||||
source: Optional[str] = "thumbnails"
|
source: Optional[str] = RegenerateDescriptionEnum.thumbnails
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user