1
0
mirror of https://github.com/pirate/ArchiveBox.git synced 2025-08-12 17:44:33 +02:00

fix admin data view configs type rendering

This commit is contained in:
Nick Sweeting
2024-09-26 02:41:22 -07:00
parent ed45f58758
commit 0cfcabf6f4

View File

@@ -519,9 +519,9 @@ def find_config_default(key: str) -> str:
def find_config_type(key: str) -> str:
if key in USER_CONFIG:
return USER_CONFIG[key]['type'].__name__
return str(USER_CONFIG[key]['type'])
elif key in DYNAMIC_CONFIG_SCHEMA:
return type(CONFIG[key]).__name__
return str(type(CONFIG[key]))
return 'str'
def key_is_safe(key: str) -> bool: