mirror of
https://git.vectorsigma.ru/public/tubearchivist.git
synced 2026-08-04 21:39:49 +00:00
add cast to appsettings
This commit is contained in:
@@ -62,6 +62,7 @@ class AppConfigAppSerializer(
|
||||
"""serialize app config"""
|
||||
|
||||
enable_snapshot = serializers.BooleanField()
|
||||
enable_cast = serializers.BooleanField()
|
||||
|
||||
|
||||
class AppConfigSerializer(ValidateUnknownFieldsMixin, serializers.Serializer):
|
||||
|
||||
@@ -51,6 +51,7 @@ class ApplicationConfigType(TypedDict):
|
||||
"""describes application config"""
|
||||
|
||||
enable_snapshot: bool
|
||||
enable_cast: bool
|
||||
|
||||
|
||||
class AppConfigType(TypedDict):
|
||||
@@ -93,7 +94,10 @@ class AppConfig:
|
||||
"integrate_ryd": False,
|
||||
"integrate_sponsorblock": False,
|
||||
},
|
||||
"application": {"enable_snapshot": True},
|
||||
"application": {
|
||||
"enable_snapshot": True,
|
||||
"enable_cast": False,
|
||||
},
|
||||
}
|
||||
|
||||
def __init__(self):
|
||||
|
||||
Reference in New Issue
Block a user