diff options
| author | Pinapelz <yukais@pinapelz.com> | 2024-10-04 11:17:26 -0700 |
|---|---|---|
| committer | Pinapelz <yukais@pinapelz.com> | 2024-10-04 11:17:26 -0700 |
| commit | dbfc935df97dca1816883a4c50f96366b2cd4d33 (patch) | |
| tree | 7e38a1d1be6302df880337e8d6017060fb6c20e3 | |
| parent | b6d16b52f95ccf022dbf84b12050d96f988e87f9 (diff) | |
remove unused query override
| -rw-r--r-- | graph.py | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -1,14 +1,13 @@ import plotly.graph_objects as go -import plotly.express as px import pandas as pd import warnings from member_colors import member_color_map import random def plot_subscriber_count_over_time(server, table_name, gtitle="Subscriber Count Over Time for Phase Connect Members", - overrideQuery=None, markers="lines", exclude_channels=[]): + markers="lines", exclude_channels=[]): warnings.filterwarnings('ignore') # Ignore pandas warning regarding pyodbc - query = f"SELECT name, subscriber_count, timestamp, channel_id FROM {table_name} ORDER by timestamp DESC" if overrideQuery is None else overrideQuery + query = f"SELECT name, subscriber_count, timestamp, channel_id FROM {table_name} ORDER by timestamp DESC" df = pd.read_sql_query(query, server.get_connection()) groups = df.groupby("name") fig = go.Figure() |
