mirror of
https://github.com/blakeblackshear/frigate.git
synced 2024-11-21 19:07:46 +01:00
Bug Fixes (#14193)
* fix getting device from empty list * Overwrite all fields * Fix header too low
This commit is contained in:
parent
dcaed0e90f
commit
74047453ef
@ -533,6 +533,7 @@ class FrigateApp:
|
|||||||
{
|
{
|
||||||
User.username: "admin",
|
User.username: "admin",
|
||||||
User.password_hash: password_hash,
|
User.password_hash: password_hash,
|
||||||
|
User.notification_tokens: [],
|
||||||
}
|
}
|
||||||
).execute()
|
).execute()
|
||||||
|
|
||||||
@ -549,7 +550,11 @@ class FrigateApp:
|
|||||||
password_hash = hash_password(
|
password_hash = hash_password(
|
||||||
password, iterations=self.config.auth.hash_iterations
|
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("********************************************************")
|
||||||
logger.info("********************************************************")
|
logger.info("********************************************************")
|
||||||
|
@ -31,6 +31,9 @@ class LibvaGpuSelector:
|
|||||||
|
|
||||||
devices = list(filter(lambda d: d.startswith("render"), os.listdir("/dev/dri")))
|
devices = list(filter(lambda d: d.startswith("render"), os.listdir("/dev/dri")))
|
||||||
|
|
||||||
|
if not devices:
|
||||||
|
return "/dev/dri/renderD128"
|
||||||
|
|
||||||
if len(devices) < 2:
|
if len(devices) < 2:
|
||||||
self._selected_gpu = f"/dev/dri/{devices[0]}"
|
self._selected_gpu = f"/dev/dri/{devices[0]}"
|
||||||
return self._selected_gpu
|
return self._selected_gpu
|
||||||
|
@ -91,7 +91,7 @@ export function MobilePageHeader({
|
|||||||
return (
|
return (
|
||||||
<div
|
<div
|
||||||
className={cn(
|
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,
|
className,
|
||||||
)}
|
)}
|
||||||
{...props}
|
{...props}
|
||||||
|
Loading…
Reference in New Issue
Block a user