mirror of
https://github.com/Casvt/MIND.git
synced 2026-04-03 03:00:22 -04:00
Added 'keep hosting settings' option for db import
This commit is contained in:
@@ -426,6 +426,19 @@ class DatabaseFileVariable(BaseInputVariable):
|
||||
return False
|
||||
|
||||
|
||||
class CopyHostingSettingsVariable(BaseInputVariable):
|
||||
name = 'copy_hosting_settings'
|
||||
description = 'Copy the hosting settings from the current database'
|
||||
source = DataSource.VALUES
|
||||
|
||||
def validate(self) -> bool:
|
||||
if not self.value in ('true', 'false'):
|
||||
return False
|
||||
|
||||
self.value = self.value == 'true'
|
||||
return True
|
||||
|
||||
|
||||
def input_validation() -> Union[None, Dict[str, Any]]:
|
||||
"""Checks, extracts and transforms inputs
|
||||
|
||||
|
||||
Reference in New Issue
Block a user