We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 95d80d2 commit 938da66Copy full SHA for 938da66
2 files changed
getter.py
@@ -12,7 +12,7 @@
12
13
for tut in yamlcontent:
14
splstring = tut["repository"].split('/')
15
- outstring += f"""'{splstring[0]} {splstring[1]} {tut["filename"]}', """
+ outstring += f"""'{splstring[0]} {splstring[1]} {tut["branch"]} {tut["filename"]}', """
16
17
outstring = outstring[0:-2]
18
tester.py
@@ -5,8 +5,9 @@
5
print(sys.argv)
6
7
repo = f"{sys.argv[1]}/{sys.argv[2]}"
8
-filename = sys.argv[3]
9
-tut = f'''https://raw.githubusercontent.com/{repo}/master/{filename}.ipynb'''
+branch = {sys.argv[3]}
+filename = sys.argv[4]
10
+tut = f'''https://raw.githubusercontent.com/{repo}/{branch}/{filename}.ipynb'''
11
nbfilename = f"notebooks/{filename}.ipynb"
with open(nbfilename, 'w') as tutfile:
r = requests.get(tut).content.decode()
0 commit comments