Skip to content

Commit

Permalink
added poetry
Browse files Browse the repository at this point in the history
  • Loading branch information
demuthsa committed Apr 28, 2024
1 parent 2946a6f commit 9182c90
Show file tree
Hide file tree
Showing 6 changed files with 715 additions and 3 deletions.
2 changes: 2 additions & 0 deletions trivia-forge/backend/.env
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
SUPABASE_URL=https://yxdrsdfocuonvorowgaa.supabase.co
SUPABASE_KEY=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZSIsInJlZiI6Inl4ZHJzZGZvY3VvbnZvcm93Z2FhIiwicm9sZSI6InNlcnZpY2Vfcm9sZSIsImlhdCI6MTcxMzU3ODY2OSwiZXhwIjoyMDI5MTU0NjY5fQ.VoDX0KI3v8kWCZpVs-RI6DO0f02HAzQ3n_9E9HyaYyc
Binary file modified trivia-forge/backend/__pycache__/config.cpython-310.pyc
Binary file not shown.
2 changes: 1 addition & 1 deletion trivia-forge/backend/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
app = Flask(__name__)

SUPABASE_URL = os.getenv('SUPABASE_URL')
SUPABASE_ANON_KEY = os.getenv('SUPABASE_ANON_KEY')
SUPABASE_KEY = os.getenv('SUPABASE_KEY')

@app.route('/')
def home():
Expand Down
4 changes: 2 additions & 2 deletions trivia-forge/backend/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ def create_app():
app = Flask(__name__)
config = dotenv_values("./.env")
url: str = config.get('SUPABASE_URL')
#print("url:",url)
# print("url:",url)
key: str = config.get('SUPABASE_KEY')
#print("key:",key)
# print("key:",key)
supabase: Client = create_client(url, key)
app.config['Client'] = supabase
return app
Expand Down
Loading

0 comments on commit 9182c90

Please sign in to comment.