summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--kpov_judge/util.py8
1 files changed, 5 insertions, 3 deletions
diff --git a/kpov_judge/util.py b/kpov_judge/util.py
index 66e2707..f92c7c9 100644
--- a/kpov_judge/util.py
+++ b/kpov_judge/util.py
@@ -1,10 +1,12 @@
import yaml
-def write_default_config(disk, params):
+def write_default_config(disk, global_params):
default_params = dict()
for k in [
'task_name',
+ 'username',
'task_url']:
- if k in params:
- default_params[k] = params[k]
+ if k in global_params:
+ default_params[k] = global_params[k]
disk.write('/home/tester/.kpov_params.yaml', yaml.dump(default_params))
+ disk.chown(1001, 1001, "/home/tester/.kpov_params.yaml")