fix anatomy

This commit is contained in:
Milan Kolar 2019-04-12 18:26:39 +02:00
parent 0e39b2fee1
commit e08b026e9d
2 changed files with 5 additions and 5 deletions

View file

@ -171,7 +171,7 @@ class AppAction(BaseHandler):
os.environ["AVALON_APP"] = self.identifier.split("_")[0] os.environ["AVALON_APP"] = self.identifier.split("_")[0]
os.environ["AVALON_APP_NAME"] = self.identifier os.environ["AVALON_APP_NAME"] = self.identifier
anatomy = Anatomy(project_name=project_name) anatomy = Anatomy()
hierarchy = "" hierarchy = ""
parents = database[project_name].find_one({ parents = database[project_name].find_one({

View file

@ -430,11 +430,11 @@ def get_avalon_project_template():
Returns: Returns:
dictionary with templates dictionary with templates
""" """
anatomy = Anatomy(project_name=os.environ.get('AVALON_PROJECT')).anatomy templates = Anatomy().templates
proj_template = {} proj_template = {}
proj_template['workfile'] = anatomy["avalon"]["workfile"] proj_template['workfile'] = templates["avalon"]["workfile"]
proj_template['work'] = anatomy["avalon"]["work"] proj_template['work'] = templates["avalon"]["work"]
proj_template['publish'] = anatomy["avalon"]["publish"] proj_template['publish'] = templates["avalon"]["publish"]
return proj_template return proj_template