diff options
-rwxr-xr-x | kpov_judge/add_task.py | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/kpov_judge/add_task.py b/kpov_judge/add_task.py index 76eb2ae..7839cce 100755 --- a/kpov_judge/add_task.py +++ b/kpov_judge/add_task.py @@ -95,10 +95,8 @@ if __name__ == '__main__': {'$set': {'source': gen_params_source}}, upsert=True) db.task_params_meta.update({'task_id': task_id, 'class_id': class_id}, {'$set': {'params': d['params_meta']}}, upsert=True) - #instructions = dict([(k, v.encode('utf8')) for k, v in instructions.iteritems()]) - #print instructions db.task_instructions.update({'task_id': task_id, 'class_id': class_id}, - {'$set': instructions}, upsert=True) + {'$set': d['instructions']}, upsert=True) for howto_dir in glob.glob(os.path.join(dirname, 'howtos/*')): howto_lang = os.path.basename(os.path.normpath(howto_dir)) if howto_lang not in {'images'}: |