Skip to content

Commit 685cab1

Browse files
committed
update
1 parent bd2fc57 commit 685cab1

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

simple_backend/src/task_tracker/main.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
from fastapi import FastAPI
22
from fastapi import HTTPException
3-
from storage_gist import GistStorage
4-
from dotenv import load_dotenv
5-
load_dotenv()
3+
from storage_gist import GistStorage
64
app = FastAPI()
75
storage = GistStorage()
86
# we display a list of all received tasks.

simple_backend/src/task_tracker/storage_gist.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
import os
22
import requests
33
import json
4+
from dotenv import load_dotenv
5+
load_dotenv()
46
GITHUB_API = 'https://api.github.com'
57
class GistStorage:
68
def __init__(self, token: str = None, gist_id: str = None, filename: str = 'tasks.json'):

0 commit comments

Comments
 (0)