Skip to content

Commit

Permalink
Merge pull request #12 from Code4GovTech/cors_fix
Browse files Browse the repository at this point in the history
env renamed
  • Loading branch information
sasi2312 authored Jun 5, 2024
2 parents f983c25 + 2597910 commit 1ec5073
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions app.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

Swagger(app)

GITHUB_TOKEN =os.getenv('APP_DEV_GITHUB_TOKEN')
GITHUB_TOKEN =os.getenv('GITHUB_TOKEN')

headers = {
"Accept": "application/vnd.github+json",
Expand All @@ -25,7 +25,7 @@

# Define a list of routes that should be protected
protected_routes = ['/greeting', '/get-data', '/issues', '/issues/<owner>', '/issues/<owner>/<issue>']
SECRET_KEY =os.getenv('APP_DEV_SECRET_KEY')
SECRET_KEY =os.getenv('SECRET_KEY')

protected_routes = [
re.compile(r'^/greeting$'),
Expand Down
4 changes: 2 additions & 2 deletions db.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ def __init__(self):
from dotenv import load_dotenv
load_dotenv()

SUPABASE_URL = os.getenv('APP_DEV_SUPABASE_URL')
SUPABASE_KEY = os.getenv('APP_DEV_SUPABASE_KEY')
SUPABASE_URL = os.getenv('SUPABASE_URL')
SUPABASE_KEY = os.getenv('SUPABASE_KEY')
self.client: Client = create_client(SUPABASE_URL, SUPABASE_KEY)
SupabaseInterface._instance = self
else:
Expand Down
4 changes: 2 additions & 2 deletions utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
from dateutil import parser


GITHUB_TOKEN =os.getenv('APP_DEV_GITHUB_TOKEN')
GITHUB_TOKEN =os.getenv('GITHUB_TOKEN')

headers = {
"Accept": "application/vnd.github+json",
Expand Down Expand Up @@ -57,7 +57,7 @@ def get_issue_details(issue_url):



def group_by_owner(data):
def group_by_owner(data):
res = []
for record in data:
org_data = find_org_data(record['issue_url'])
Expand Down

0 comments on commit 1ec5073

Please sign in to comment.