diff options
Diffstat (limited to 'kpov_judge')
-rwxr-xr-x | kpov_judge/test_task.py | 5 |
1 files 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'}, } |