mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-02-18 09:04:28 +03:00
Formatting
This commit is contained in:
parent
a4586ff1e9
commit
901e883b2c
@ -32,7 +32,9 @@ class RealTimeProcessorApi(ABC):
|
||||
pass
|
||||
|
||||
@abstractmethod
|
||||
def handle_request(self, topic: str, request_data: dict[str, any]) -> dict[str, any] | None:
|
||||
def handle_request(
|
||||
self, topic: str, request_data: dict[str, any]
|
||||
) -> dict[str, any] | None:
|
||||
"""Handle metadata requests.
|
||||
Args:
|
||||
topic (str): topic that dictates what work is requested.
|
||||
|
||||
@ -212,7 +212,9 @@ class EmbeddingsContext:
|
||||
return self.db.execute_sql(sql_query).fetchall()
|
||||
|
||||
def clear_face_classifier(self) -> None:
|
||||
self.requestor.send_data(EmbeddingsRequestEnum.clear_face_classifier.value, None)
|
||||
self.requestor.send_data(
|
||||
EmbeddingsRequestEnum.clear_face_classifier.value, None
|
||||
)
|
||||
|
||||
def delete_face_ids(self, face: str, ids: list[str]) -> None:
|
||||
folder = os.path.join(FACE_DIR, face)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user