latest
This commit is contained in:
@@ -3,15 +3,15 @@ from modules.database.tools.neontology.basenode import BaseNode
|
||||
|
||||
class CCBaseNode(BaseNode):
|
||||
__primarylabel__: ClassVar[str] = ''
|
||||
__primaryproperty__: ClassVar[str] = 'unique_id'
|
||||
unique_id: str
|
||||
tldraw_snapshot: str
|
||||
|
||||
__primaryproperty__: ClassVar[str] = 'uuid_string'
|
||||
uuid_string: str
|
||||
node_storage_path: str
|
||||
|
||||
def to_dict(self):
|
||||
return {
|
||||
"__primarylabel__": self.__primarylabel__,
|
||||
"unique_id": self.unique_id,
|
||||
"tldraw_snapshot": self.tldraw_snapshot,
|
||||
"uuid_string": self.uuid_string,
|
||||
"node_storage_path": self.node_storage_path,
|
||||
}
|
||||
|
||||
class UserBaseNode(CCBaseNode):
|
||||
@@ -25,8 +25,8 @@ class UserBaseNode(CCBaseNode):
|
||||
def to_dict(self):
|
||||
return {
|
||||
"__primarylabel__": self.__primarylabel__,
|
||||
"unique_id": self.unique_id,
|
||||
"tldraw_snapshot": self.tldraw_snapshot,
|
||||
"uuid_string": self.uuid_string,
|
||||
"node_storage_path": self.node_storage_path,
|
||||
"cc_username": self.cc_username,
|
||||
"user_db_name": self.user_db_name,
|
||||
"user_email": self.user_email,
|
||||
@@ -43,8 +43,8 @@ class WorkerBaseNode(CCBaseNode):
|
||||
def to_dict(self):
|
||||
return {
|
||||
"__primarylabel__": self.__primarylabel__,
|
||||
"unique_id": self.unique_id,
|
||||
"tldraw_snapshot": self.tldraw_snapshot,
|
||||
"uuid_string": self.uuid_string,
|
||||
"node_storage_path": self.node_storage_path,
|
||||
"worker_name": self.worker_name,
|
||||
"worker_email": self.worker_email,
|
||||
"worker_db_name": self.worker_db_name,
|
||||
|
||||
Reference in New Issue
Block a user