diff options
author | gasperfele@fri1.uni-lj.si <gasperfele@fri1.uni-lj.si@5cf9fbd1-b2bc-434c-b4b7-e852f4f63414> | 2016-10-01 22:05:30 +0000 |
---|---|---|
committer | gasperfele@fri1.uni-lj.si <gasperfele@fri1.uni-lj.si@5cf9fbd1-b2bc-434c-b4b7-e852f4f63414> | 2016-10-01 22:05:30 +0000 |
commit | 5f5fe80b0c5b0f23c21e08bc37570fb3e52acdaf (patch) | |
tree | 87679ca727ea38f5fb0f34fcc7da6c831aeb6821 /kpov_judge | |
parent | fa8934667ad8eae30c81081bbaa868b227c119ed (diff) |
Added the missing util.py file
git-svn-id: https://svn.lusy.fri.uni-lj.si/kpov-public-svn/kpov-public@352 5cf9fbd1-b2bc-434c-b4b7-e852f4f63414
Diffstat (limited to 'kpov_judge')
-rw-r--r-- | kpov_judge/util.py | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/kpov_judge/util.py b/kpov_judge/util.py new file mode 100644 index 0000000..bdcc690 --- /dev/null +++ b/kpov_judge/util.py @@ -0,0 +1,10 @@ +import yaml + +def write_default_config(disk, params): + default_params = dict() + for k in [ + 'task_name', + 'task_url']: + if k in params: + default_params[k] = params[k] + disk.write(yaml.dump(default_params)) |