aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexander Wieder <awieder@mpi-sws.org>2013-04-30 10:57:59 -0400
committerBjoern Brandenburg <bbb@mpi-sws.org>2013-05-01 04:17:50 -0400
commitb7380c730702f5c8a41ca89b007facd815f8d31d (patch)
treea419f59ebc3fb91a98b2fc2444704ded01c79cf3
parent762565248b57d39bac5934da627f09d17e12df8c (diff)
Bugfix: de-duplicate definition of assign_ids_by_period
The Python taskmodel implementation, TaskSystem, has multiple definitions of assign_ids_by_period(), where one of them actually assigns IDs by deadline. This patch renames the method accordingly.
-rw-r--r--schedcat/model/tasks.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/schedcat/model/tasks.py b/schedcat/model/tasks.py
index 4d9db80..122ad3e 100644
--- a/schedcat/model/tasks.py
+++ b/schedcat/model/tasks.py
@@ -85,7 +85,7 @@ class TaskSystem(list):
85 for i, t in enumerate(sorted(self, key=lambda t: t.period)): 85 for i, t in enumerate(sorted(self, key=lambda t: t.period)):
86 t.id = i + 1 86 t.id = i + 1
87 87
88 def assign_ids_by_period(self): 88 def assign_ids_by_deadline(self):
89 for i, t in enumerate(sorted(self, key=lambda t: t.deadline)): 89 for i, t in enumerate(sorted(self, key=lambda t: t.deadline)):
90 t.id = i + 1 90 t.id = i + 1
91 91