Bugfix: objProxyPath was missing. Renamed duration to objDur.

This commit is contained in:
Markus Birth 2017-03-23 13:43:26 +01:00
parent a4c64699da
commit d0e00a02b2
3 changed files with 4 additions and 3 deletions

View File

@ -107,8 +107,9 @@ class MosDb():
"isDeleted": objData["isDeleted"], "isDeleted": objData["isDeleted"],
"objSlug": objData["objSlug"], "objSlug": objData["objSlug"],
"objPath": objData["objPath"], "objPath": objData["objPath"],
"objProxyPath": objData["objProxyPath"],
"description": objData["description"], "description": objData["description"],
"duration": objData["duration"], "objDur": objData["objDur"],
"objAir": self.get_objair_id(objData["objAir"]), "objAir": self.get_objair_id(objData["objAir"]),
"created": self.date_to_stamp(objData["created"]), "created": self.date_to_stamp(objData["created"]),
"createdBy": self.get_user_id(objData["createdBy"]), "createdBy": self.get_user_id(objData["createdBy"]),

View File

@ -39,7 +39,7 @@ def parse_mos_xml(mosElem: xml.etree.ElementTree.Element) -> bool:
"changed": get_text_or_default(mosObj, "changed", ""), "changed": get_text_or_default(mosObj, "changed", ""),
"changedBy": get_text_or_default(mosObj, "changedBy", ""), "changedBy": get_text_or_default(mosObj, "changedBy", ""),
"description": get_text_or_default(mosObj, "description", ""), "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"], "") "planningId": get_text_or_default(mosObj, ["mosExternalMetadata", "mosPayload", "planningID"], "")
} }
#print(repr(objData)) #print(repr(objData))

View File

@ -60,7 +60,7 @@ CREATE TABLE "mosobjects" (
"changed" INTEGER, "changed" INTEGER,
"changedBy" INTEGER REFERENCES "mosusers" ("userId"), "changedBy" INTEGER REFERENCES "mosusers" ("userId"),
"description" TEXT, "description" TEXT,
"duration" INTEGER, "objDur" INTEGER,
"groupId" INTEGER REFERENCES "mosgroups" ("groupId") "groupId" INTEGER REFERENCES "mosgroups" ("groupId")
); );