overhaul of rtp view, added simple caching, added rrd graphs

This commit is contained in:
Jordan Rodgers 2017-12-13 17:08:57 -05:00
parent b9e5236f0a
commit 2b69443930
10 changed files with 229 additions and 72 deletions

View file

@ -6,7 +6,8 @@ def connect_starrs():
try:
starrs = psycopg2.connect(
"dbname='{}' user='{}' host='{}' password='{}'".format(
app.config['STARRS_DB_NAME'], app.config['STARRS_DB_USER'], app.config['STARRS_DB_HOST'], app.config['STARRS_DB_PASS']))
app.config['STARRS_DB_NAME'], app.config['STARRS_DB_USER'],
app.config['STARRS_DB_HOST'], app.config['STARRS_DB_PASS']))
except:
print("Unable to connect to STARRS database.")
raise