Skip to content

Commit 71e1c9b

Browse files
bmesuereniknetniko
andauthored
Apply suggestions from code review
Co-authored-by: Niko Strijbol <[email protected]>
1 parent 26dd30d commit 71e1c9b

File tree

2 files changed

+5
-9
lines changed

2 files changed

+5
-9
lines changed

en/faq/api-tokens/index.md

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ In Python, this would look like:
5050
#!/usr/bin/python3
5151
# Name: Get submissions
5252
# By Robbert Gurdeep Singh
53-
################################################################################
53+
######################################################################
5454
TOKEN = "TOKEN HERE"
5555

5656

@@ -62,9 +62,7 @@ headers = {
6262
"Authorization" : TOKEN
6363
}
6464

65-
conn.request("GET",
66-
"/nl/submissions.json",
67-
headers=headers)
65+
conn.request("GET", "/en/submissions.json", headers=headers)
6866
res = conn.getresponse()
6967
print(res.status, res.reason)
7068
data = res.read()

nl/faq/api-tokens/index.md

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -44,13 +44,13 @@ curl \
4444
"https://dodona.ugent.be/nl/submissions.json"
4545
```
4646

47-
In Python, ziet dit er als volgt uit:
47+
In Python ziet dit er als volgt uit:
4848

4949
```python
5050
#!/usr/bin/python3
5151
# Name: Get submissions
5252
# By Robbert Gurdeep Singh
53-
################################################################################
53+
######################################################################
5454
TOKEN = "TOKEN HERE"
5555

5656

@@ -62,9 +62,7 @@ headers = {
6262
"Authorization" : TOKEN
6363
}
6464

65-
conn.request("GET",
66-
"/nl/submissions.json",
67-
headers=headers)
65+
conn.request("GET", "/nl/submissions.json", headers=headers)
6866
res = conn.getresponse()
6967
print(res.status, res.reason)
7068
data = res.read()

0 commit comments

Comments
 (0)