mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-10 16:27:51 -06:00
Revert "Use SQLQueryFactory for container DB"
This reverts commit 571a051041
.
This commit is contained in:
parent
571a051041
commit
adac0af1ec
3 changed files with 9 additions and 0 deletions
|
@ -1,5 +1,6 @@
|
|||
from UM.Settings.SQLQueryFactory import SQLQueryFactory
|
||||
from UM.Settings.DatabaseContainerMetadataController import DatabaseMetadataContainerController
|
||||
from UM.Settings.InstanceContainer import InstanceContainer
|
||||
|
||||
|
||||
class IntentDatabaseHandler(DatabaseMetadataContainerController):
|
||||
|
@ -8,6 +9,7 @@ class IntentDatabaseHandler(DatabaseMetadataContainerController):
|
|||
def __init__(self) -> None:
|
||||
super().__init__(SQLQueryFactory(table = "intents",
|
||||
fields = {
|
||||
"id": "text",
|
||||
"name": "text",
|
||||
"quality_type": "text",
|
||||
"intent_category": "text",
|
||||
|
@ -17,3 +19,4 @@ class IntentDatabaseHandler(DatabaseMetadataContainerController):
|
|||
"version": "text",
|
||||
"setting_version": "text"
|
||||
}))
|
||||
self.container_type = InstanceContainer
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue