Skip to content

Commit

Permalink
fixed the duplicates of names and desc
Browse files Browse the repository at this point in the history
  • Loading branch information
euroblaze authored Apr 13, 2017
1 parent 7a87ff9 commit 869ed35
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions eb_merge_wizard/models/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,13 @@ def action_merge(self):
#also write the description of the destination task because it will be overwritten
desc.append(self.dst_task_id.description)
for id in self.task_ids:
for name in id:
# append the names and desc to the empty lists
names.append(name.name)
desc.append(name.description)
if id.id != self.dst_task_id.id:
for name in id:
names.append(name.name)
desc.append(name.description)

# append the names and desc to the empty lists

#self.task_ids.write({'message_ids' : self.dst_task_id.message_ids})
#transfering the messages from task_ids to dst_task_id
for message in self.task_ids:
Expand Down

0 comments on commit 869ed35

Please sign in to comment.