Skip to content

Commit

Permalink
Fix update of tutorial and tutorial type
Browse files Browse the repository at this point in the history
  • Loading branch information
bebatut committed Jun 30, 2018
1 parent 48cc1b7 commit 100c476
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion bin/setup_training_content.py
Expand Up @@ -139,7 +139,7 @@ def update_tutorial(args, tuto_dir, topic_dir):
metadata = load_yaml(metadata_path)
found = False
for mat in metadata["material"]:
if mat["name"] == "tutorial1":
if mat["name"] == args.tutorial_name:
mat["name"] = args.tutorial_name
mat["title"] = args.tutorial_title
mat["hands_on"] = args.tutorial_hands_on
Expand All @@ -150,6 +150,7 @@ def update_tutorial(args, tuto_dir, topic_dir):
new_mat = collections.OrderedDict()
new_mat["title"] = args.tutorial_title
new_mat["name"] = args.tutorial_name
new_mat["type"] = 'tutorial'
new_mat["zenodo_link"] = ''
new_mat["hands_on"] = args.tutorial_hands_on
new_mat["slides"] = args.tutorial_slides
Expand Down

0 comments on commit 100c476

Please sign in to comment.