Skip to content

Commit

Permalink
Fix #596
Browse files Browse the repository at this point in the history
  • Loading branch information
failys committed Dec 9, 2020
1 parent f73b6aa commit ee613cd
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions cairis/data/GoalAssociationDAO.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ def get_goal_associations(self, pathValues):
assocList.append(assoc)
return assocList

def get_goal_association(self, environment_name, goal_name, subgoal_name, deleteId=True, pathValues = []):
def get_goal_association(self, environment_name, goal_name, subgoal_name, pathValues = [],deleteId=True):
try:
assoc = self.db_proxy.getGoalAssociation(environment_name,goal_name,subgoal_name)
if (deleteId == True):
Expand Down Expand Up @@ -85,7 +85,7 @@ def update_goal_association(self,assoc,environment_name,goal_name,subgoal_name,
if (assoc.theGoal == assoc.theSubGoal):
raise CairisHTTPError(status_code=http.client.BAD_REQUEST,status="Self-refinement error",message='Cannot self-refine ' + assoc.theGoal)

old_assoc = self.get_goal_association(environment_name,goal_name,subgoal_name,False)
old_assoc = self.get_goal_association(environment_name,goal_name,subgoal_name,[],False)
assocId = old_assoc.theId

assocParams = GoalAssociationParameters(
Expand All @@ -105,7 +105,7 @@ def update_goal_association(self,assoc,environment_name,goal_name,subgoal_name,
raise ARMHTTPError(ex)

def delete_goal_association(self, environment_name, goal_name, subgoal_name, pathValues = []):
assoc = self.get_goal_association(environment_name,goal_name,subgoal_name,False)
assoc = self.get_goal_association(environment_name,goal_name,subgoal_name,[],False)
try:
self.db_proxy.deleteGoalAssociation(assoc.theId,assoc.theGoalDimension,assoc.theSubGoalDimension)
except ARMException as ex:
Expand Down

0 comments on commit ee613cd

Please sign in to comment.