From 68cba8a186ef8f641562066d73f85bd53c240dd0 Mon Sep 17 00:00:00 2001 From: Pinapelz Date: Sun, 26 Nov 2023 12:48:42 -0800 Subject: bump dependency and minor style changes --- backend/graph.py | 7 ++----- backend/requirements.txt | 46 ++++++++++++++++++++++++++++++---------------- 2 files changed, 32 insertions(+), 21 deletions(-) (limited to 'backend') diff --git a/backend/graph.py b/backend/graph.py index 815c1ea..38cc8bb 100644 --- a/backend/graph.py +++ b/backend/graph.py @@ -1,9 +1,6 @@ import plotly.graph_objs as go import pandas as pd import warnings -import math -from datetime import datetime, timedelta -import numpy as np def plot_subscriber_count_over_time(server, table_name, gtitle = "Subscriber Count Over Time for Phase Connect Members", overrideQuery = None, markers = "lines", exclude_channels = []): @@ -21,8 +18,8 @@ def plot_subscriber_count_over_time(server, table_name, gtitle = "Subscriber Cou showlegend = True)) fig.update_layout( title = {'text': gtitle, 'x': 0.5, 'xanchor': 'center', - 'yanchor': 'top', 'font': {'family': 'Arial', 'size': 30}}, - xaxis_title = "Timestamp", + 'yanchor': 'top', 'font': {'family': 'Droid Sans', 'size': 30}}, + xaxis_title = "Date", yaxis_title = "Subscribers", legend = dict(font = dict(size = 16), title = dict(text = "Channels")), height = 950, diff --git a/backend/requirements.txt b/backend/requirements.txt index 2f05f53..2099279 100644 --- a/backend/requirements.txt +++ b/backend/requirements.txt @@ -1,21 +1,35 @@ -certifi==2023.7.22 -charset-normalizer==3.1.0 +blinker==1.7.0 +certifi==2023.11.17 +charset-normalizer==3.3.2 +click==8.1.7 docopt==0.6.2 -greenlet==2.0.2 -idna==3.4 -mysql-connector-python==8.0.32 -numpy==1.24.2 -packaging==23.0 -pandas==1.5.3 -pipreqs==0.4.12 -plotly==5.13.1 -protobuf==3.20.3 +Flask==3.0.0 +Flask-Cors==4.0.0 +greenlet==3.0.1 +idna==3.6 +itsdangerous==2.1.2 +Jinja2==3.1.2 +joblib==1.3.2 +MarkupSafe==2.1.3 +mysql-connector-python==8.2.0 +numpy==1.26.2 +packaging==23.2 +pandas==2.1.3 +patsy==0.5.3 +pip-review==1.3.0 +pipreqs==0.4.13 +plotly==5.18.0 +protobuf==4.21.12 python-dateutil==2.8.2 -pytz==2022.7.1 +pytz==2023.3.post1 requests==2.31.0 +scikit-learn==1.3.2 +scipy==1.11.4 six==1.16.0 -tenacity==8.2.2 -typing_extensions==4.5.0 -urllib3==1.26.15 +tenacity==8.2.3 +threadpoolctl==3.2.0 +typing_extensions==4.8.0 +tzdata==2023.3 +urllib3==2.1.0 +Werkzeug==3.0.1 yarg==0.1.9 -Flask~=2.2.3 \ No newline at end of file -- cgit v1.2.3