예제 #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()))