Skip to content
This repository has been archived by the owner on Sep 29, 2023. It is now read-only.

Commit

Permalink
Merge pull request #73 from viur-framework/fix/task-list-uses-key-not-id
Browse files Browse the repository at this point in the history
fixed regression in tasks list
  • Loading branch information
tsteinruecken authored Jun 28, 2018
2 parents a67a67a + 924098f commit 0ad276f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ def list(self, *args, **kwargs ):
global _callableTasks
class extList( list ):
pass
res = extList( [{"key": x.key, "name":_(x.name), "descr":_(x.descr) } for x in _callableTasks.values() if x().canCall()] )
res = extList( [{"id": x.id, "name":_(x.name), "descr":_(x.descr) } for x in _callableTasks.values() if x().canCall()] )
res.cursor = None
return( self.render.list( res ) )
list.exposed=True
Expand Down

0 comments on commit 0ad276f

Please sign in to comment.