summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPinapelz <yukais@pinapelz.com>2024-10-04 11:17:26 -0700
committerPinapelz <yukais@pinapelz.com>2024-10-04 11:38:54 -0700
commit309662f48584cf8af9a6e73a28ef7f1f630ca1f8 (patch)
treebb91dfe21d0a9fd63ed78401ff965f42d00be4dc
parent831bcbd6914ff844e13f20cb53c711277bab54f2 (diff)
remove unused query override
-rw-r--r--graph.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/graph.py b/graph.py
index f7d8716..d608093 100644
--- a/graph.py
+++ b/graph.py
@@ -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()
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage