avoid error because of old favorite tems
This commit is contained in:
parent
7ba0bec7f7
commit
e871eafcaf
1 changed files with 1 additions and 1 deletions
|
@ -97,7 +97,7 @@ def updateSortInfo(person, task, data):
|
|||
personUid = util.getUidForObject(person)
|
||||
taskUid = util.getUidForObject(task)
|
||||
for fav in favorites.query(userName=personUid, taskId=taskUid):
|
||||
if fav.data['type'] == 'sort':
|
||||
if fav.data.get('type') == 'sort':
|
||||
fdata = fav.data['sortInfo']
|
||||
if not data:
|
||||
data = fdata
|
||||
|
|
Loading…
Add table
Reference in a new issue