udpate nuke template filling to match unified templates

This commit is contained in:
Milan Kolar 2019-02-17 22:23:20 +01:00
parent bf7d25fd94
commit 3cd832a5eb
2 changed files with 2 additions and 2 deletions

View file

@ -70,7 +70,7 @@ def format_anatomy(data):
data.update({
"hierarchy": pype.get_hierarchy(),
"frame": "#"*padding,
"VERSION": pype.get_version_from_path(file)
"version": pype.get_version_from_path(file)
})
# log.info("format_anatomy:anatomy: {}".format(anatomy))

View file

@ -87,7 +87,7 @@ def get_project_code():
string: project code
"""
return io.find_one({"type": "project"})["data"]["code"]
return io.find_one({"type": "project"})["data"].get("code", '')
def set_project_code(code):