From 259791057ab3833f752a3eedab681268bc7187f4 Mon Sep 17 00:00:00 2001 From: sasi Date: Wed, 5 Jun 2024 14:42:47 +0530 Subject: [PATCH] env renamed --- app.py | 4 ++-- db.py | 4 ++-- utils.py | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/app.py b/app.py index 36b9383..b378096 100644 --- a/app.py +++ b/app.py @@ -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", @@ -25,7 +25,7 @@ # Define a list of routes that should be protected protected_routes = ['/greeting', '/get-data', '/issues', '/issues/', '/issues//'] -SECRET_KEY =os.getenv('APP_DEV_SECRET_KEY') +SECRET_KEY =os.getenv('SECRET_KEY') protected_routes = [ re.compile(r'^/greeting$'), diff --git a/db.py b/db.py index 491596d..6abec14 100644 --- a/db.py +++ b/db.py @@ -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: diff --git a/utils.py b/utils.py index b0730c5..0a8e085 100644 --- a/utils.py +++ b/utils.py @@ -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", @@ -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'])