From 42076466e00aa066769050bb2e2b4d98e9cc4d20 Mon Sep 17 00:00:00 2001 From: Timotej Lazar Date: Sun, 7 Oct 2018 00:17:52 +0200 Subject: =?UTF-8?q?test=5Ftask:=20store=20params=20in=20OrderedDict=20for?= =?UTF-8?q?=20Python=E2=89=A43.5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- kpov_judge/test_task.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/kpov_judge/test_task.py b/kpov_judge/test_task.py index b96e63c..bc76d97 100755 --- a/kpov_judge/test_task.py +++ b/kpov_judge/test_task.py @@ -1,6 +1,7 @@ #!/usr/bin/env python # -*- coding: utf-8 -*- +import collections import getpass import io import yaml @@ -95,9 +96,9 @@ def locate_task(params, argparser, quiet=False): if not quiet: params = get_params(params, url_meta) # then the student's ID (and password if neccessarry) - fetch_params_meta = { + fetch_params_meta = collections.OrderedDict({ 'username': {'descriptions': {'si': 'Uporabniško ime', 'en': 'Username'}}, - } + }) if params['task_url'] is not None and ( params['task_url'].startswith('http')): fetch_params_meta['password'] = {'descriptions': {'si': 'Geslo', 'en': 'Password'}, } -- cgit v1.2.1