Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 7f56eea

Browse files
committed
Allow 'url' key in general, but delete it for reprocessed scripts.
1 parent e0e7e18 commit 7f56eea

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

run.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@
4444
"image", # todo, remove this
4545
"exception",
4646
"private",
47+
"url",
4748
"prepend", # todo, remove
4849
"append" # todo, remove
4950
],
@@ -732,6 +733,10 @@ def process_script_leaf(leaf, options, id_dict):
732733
code_path = save_code(code_string, leaf, language, 'documentation')
733734
leaf[language] = code_path
734735
save_code(exec_string, leaf, language, 'execution')
736+
737+
# if this is being re-processed we need to make sure the url is cleared.
738+
leaf.pop('url', None)
739+
735740
id_dict['complete'].add(leaf['id'])
736741

737742

0 commit comments

Comments
 (0)