* fix getting device from empty list

* Overwrite all fields

* Fix header too low
This commit is contained in:
Nicolas Mowen 2024-10-07 07:18:09 -06:00 committed by GitHub
parent dcaed0e90f
commit 74047453ef
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 10 additions and 2 deletions

View File

@ -533,6 +533,7 @@ class FrigateApp:
{
User.username: "admin",
User.password_hash: password_hash,
User.notification_tokens: [],
}
).execute()
@ -549,7 +550,11 @@ class FrigateApp:
password_hash = hash_password(
password, iterations=self.config.auth.hash_iterations
)
User.replace(username="admin", password_hash=password_hash).execute()
User.replace(
username="admin",
password_hash=password_hash,
notification_tokens=[],
).execute()
logger.info("********************************************************")
logger.info("********************************************************")

View File

@ -31,6 +31,9 @@ class LibvaGpuSelector:
devices = list(filter(lambda d: d.startswith("render"), os.listdir("/dev/dri")))
if not devices:
return "/dev/dri/renderD128"
if len(devices) < 2:
self._selected_gpu = f"/dev/dri/{devices[0]}"
return self._selected_gpu

View File

@ -91,7 +91,7 @@ export function MobilePageHeader({
return (
<div
className={cn(
"sticky top-0 z-50 mb-2 flex items-center justify-center bg-background p-4",
"sticky -top-2 z-50 mb-2 flex items-center justify-center bg-background p-4",
className,
)}
{...props}