Skip to content

Commit d34d2aa

Browse files
committed
test 8
1 parent b010c67 commit d34d2aa

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

.github/workflows/pylint.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@ jobs:
2828
id: changed-files
2929
run: |
3030
FILES=$(git diff --name-only ${{ github.event.before }} ${{ github.sha }} -- '*.py' | tr '\n' ' ')
31-
echo "files=$FILES" >> $GITHUB_OUTPUT
3231
3332
- name: Analysing the code with pylint
3433
if: steps.changed-files.outputs.files != ''

autograder/context.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@ class RequestContext:
99
"""
1010
_instance = None
1111

12+
def __init__(self) -> None:
13+
self.request = None
14+
1215
@classmethod
1316
def get_instance(cls):
1417
"""Gets the single instance of the class."""
@@ -29,4 +32,4 @@ def get_request(self):
2932
return self.request
3033

3134
# Create a globally accessible instance
32-
request_context = RequestContext.get_instance()
35+
REQUEST_CONTEXT = RequestContext.get_instance()

0 commit comments

Comments
 (0)