Skip to content

Commit e1cd415

Browse files
committed
tilt update
1 parent 685cab1 commit e1cd415

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
GITHUB_TOKEN=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
1+
GITHUB_TOKEN=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
22
GIST_ID=69fc2b19cd06bf212c1107481b1bad6f

simple_backend/src/task_tracker/main.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
from fastapi import FastAPI
22
from fastapi import HTTPException
3-
from storage_gist import GistStorage
3+
from storage_gist import GistStorage
4+
import os
45
app = FastAPI()
56
storage = GistStorage()
67
# we display a list of all received tasks.

simple_backend/src/task_tracker/storage_gist.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ def __init__(self, token: str = None, gist_id: str = None, filename: str = 'task
1515
'Authorization': f'token {self.token}',
1616
'Accept': 'application/vnd.github+json'
1717
}
18-
18+
1919
def _gist_url(self) -> str:
2020
return f'{GITHUB_API}/gists/{self.gist_id}'
2121
# loading task list from gist
@@ -42,4 +42,4 @@ def save(self, tasks: list[dict]) -> None:
4242
}
4343
}
4444
r = requests.patch(self._gist_url(), headers = self.headers, json = body, timeout = 10)
45-
r.raise_for_status()
45+
r.raise_for_status()

0 commit comments

Comments
 (0)