Bugfix: objProxyPath was missing. Renamed duration to objDur.
This commit is contained in:
parent
a4c64699da
commit
d0e00a02b2
3
MosDb.py
3
MosDb.py
@ -107,8 +107,9 @@ class MosDb():
|
||||
"isDeleted": objData["isDeleted"],
|
||||
"objSlug": objData["objSlug"],
|
||||
"objPath": objData["objPath"],
|
||||
"objProxyPath": objData["objProxyPath"],
|
||||
"description": objData["description"],
|
||||
"duration": objData["duration"],
|
||||
"objDur": objData["objDur"],
|
||||
"objAir": self.get_objair_id(objData["objAir"]),
|
||||
"created": self.date_to_stamp(objData["created"]),
|
||||
"createdBy": self.get_user_id(objData["createdBy"]),
|
||||
|
@ -39,7 +39,7 @@ def parse_mos_xml(mosElem: xml.etree.ElementTree.Element) -> bool:
|
||||
"changed": get_text_or_default(mosObj, "changed", ""),
|
||||
"changedBy": get_text_or_default(mosObj, "changedBy", ""),
|
||||
"description": get_text_or_default(mosObj, "description", ""),
|
||||
"duration": get_text_or_default(mosObj, "objDur", "0"),
|
||||
"objDur": get_text_or_default(mosObj, "objDur", "0"),
|
||||
"planningId": get_text_or_default(mosObj, ["mosExternalMetadata", "mosPayload", "planningID"], "")
|
||||
}
|
||||
#print(repr(objData))
|
||||
|
@ -60,7 +60,7 @@ CREATE TABLE "mosobjects" (
|
||||
"changed" INTEGER,
|
||||
"changedBy" INTEGER REFERENCES "mosusers" ("userId"),
|
||||
"description" TEXT,
|
||||
"duration" INTEGER,
|
||||
"objDur" INTEGER,
|
||||
"groupId" INTEGER REFERENCES "mosgroups" ("groupId")
|
||||
);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user