summaryrefslogtreecommitdiff
path: root/kpov_judge
diff options
context:
space:
mode:
Diffstat (limited to 'kpov_judge')
-rw-r--r--kpov_judge/util.py10
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))