mirror of
https://github.com/iv-org/invidious.git
synced 2025-09-15 00:08:30 +00:00
Config: Use from_yaml constructor for PagesEnabled
`PagesEnabled` doesn't define a blank constructor without any parameters meaning that `PagesEnabled.new` leads to a error due to lack of arguments
This commit is contained in:
parent
116a5db24d
commit
ba65e4ff25
@ -158,7 +158,7 @@ class Config
|
|||||||
# Global per-page feature toggles.
|
# Global per-page feature toggles.
|
||||||
# Valid keys: "trending", "popular", "search"
|
# Valid keys: "trending", "popular", "search"
|
||||||
# If someone sets both `popular_enabled` and `pages_enabled["popular"]`, the latter takes precedence.
|
# If someone sets both `popular_enabled` and `pages_enabled["popular"]`, the latter takes precedence.
|
||||||
property pages_enabled : PagesEnabled = PagesEnabled.new
|
property pages_enabled : PagesEnabled = PagesEnabled.from_yaml("")
|
||||||
# —————————————————————————————————————————————————————————————————————————————————————
|
# —————————————————————————————————————————————————————————————————————————————————————
|
||||||
|
|
||||||
property captcha_enabled : Bool = true
|
property captcha_enabled : Bool = true
|
||||||
|
Loading…
Reference in New Issue
Block a user