diff --git a/tsplot b/tsplot index 70392e7..f56b2b6 100755 --- a/tsplot +++ b/tsplot @@ -48,7 +48,7 @@ def get_data(topic, timerange, ts): table = topic earliest = datetime.datetime.now() - timerange - query = f"SELECT * FROM {table} WHERE timestamp > '{earliest}'" + query = f"SELECT * FROM \"{table}\" WHERE timestamp > '{earliest}'" df = pd.read_sql(query, conn, parse_dates=[ 'timestamp'], index_col='timestamp')