Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
OPelham committed Jan 8, 2022
1 parent 02ed420 commit e2ac76a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions app.py
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
import os

import requests as requests
from flask import Flask, render_template, redirect
# from boto.s3.connection import S3Connection
import requests

# WEATHER_API_KEY = S3Connection(os.environ['WEATHER_KEY'])
# NEWS_API_KEY = S3Connection(os.environ['NEWS_KEY'])
WEATHER_API_KEY = requests.get("https://api.heroku.com/apps/pelicannews/config-vars", "Accept: application/vnd.heroku+json; version=3").get("WEATHER_KEY")
NEWS_API_KEY = requests.get("https://api.heroku.com/apps/pelicannews/config-vars", "Accept: application/vnd.heroku+json; version=3").get("NEWS_KEY")
print(str(dict(requests.get("https://api.heroku.com/apps/pelicannews/config-vars", "Accept: application/vnd.heroku+json; version=3"))))
WEATHER_API_KEY = dict(requests.get("https://api.heroku.com/apps/pelicannews/config-vars", "Accept: application/vnd.heroku+json; version=3")).get("WEATHER_KEY")
NEWS_API_KEY = dict(requests.get("https://api.heroku.com/apps/pelicannews/config-vars", "Accept: application/vnd.heroku+json; version=3")).get("NEWS_KEY")

app = Flask(__name__)

Expand Down

0 comments on commit e2ac76a

Please sign in to comment.