aboutsummaryrefslogtreecommitdiff
path: root/management/commands/listtimetables.py
diff options
context:
space:
mode:
authorAlban Gruin2018-04-22 12:44:03 +0200
committerAlban Gruin2018-04-22 12:44:56 +0200
commitf36bceaddcd3315235fe9ce9172ea4f73ce405ba (patch)
tree8946dfce91ed15916e7bb0dc1361da3e02969f4d /management/commands/listtimetables.py
parent0eeba2b335807c8c19c2dbfd0463aa4df1375d0e (diff)
Suppression du paramètre --order-by-id dans listtimetables
Ce paramètre est devenu inutile depuis l’ajout des sources, qui sont déjà triées par leur ID.
Diffstat (limited to 'management/commands/listtimetables.py')
-rw-r--r--management/commands/listtimetables.py5
1 files changed, 0 insertions, 5 deletions
diff --git a/management/commands/listtimetables.py b/management/commands/listtimetables.py
index d17399a..bd27e92 100644
--- a/management/commands/listtimetables.py
+++ b/management/commands/listtimetables.py
@@ -20,13 +20,8 @@ from ...models import Source
class Command(BaseCommand):
help = "List timetables in the database"
- def add_arguments(self, parser):
- parser.add_argument("--order-by-id", action="store_true")
-
def handle(self, *args, **options):
sources = Source.objects.all()
- if options["order_by_id"]:
- sources = sources.order_by("id")
for source in sources:
self.stdout.write("{0}\t: {1} (id: {2})".format(