From b7380c730702f5c8a41ca89b007facd815f8d31d Mon Sep 17 00:00:00 2001 From: Alexander Wieder Date: Tue, 30 Apr 2013 16:57:59 +0200 Subject: 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. --- schedcat/model/tasks.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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): for i, t in enumerate(sorted(self, key=lambda t: t.period)): t.id = i + 1 - def assign_ids_by_period(self): + def assign_ids_by_deadline(self): for i, t in enumerate(sorted(self, key=lambda t: t.deadline)): t.id = i + 1 -- cgit v1.2.2