示例#1
0
 def get_tasks(self):
     return OrderedDict(
         sorted(list(Course.get_tasks(self).items()),
                key=lambda t: (t[1].get_order(), t[1].get_id())))
示例#2
0
 def get_tasks(self):
     return OrderedDict(sorted(Course.get_tasks(self).items(), key=lambda t: t[1].get_order()))