From 24ae0fe21f2656515880e0792a909a42ba246ea5 Mon Sep 17 00:00:00 2001 From: imcompiling Date: Sat, 11 May 2024 13:34:30 -0400 Subject: [PATCH] Allow multiple quarters to be selected from search string, as long as they match the start with. --- cogs/commands/view.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cogs/commands/view.py b/cogs/commands/view.py index ad409d2..b68eaa2 100644 --- a/cogs/commands/view.py +++ b/cogs/commands/view.py @@ -48,7 +48,7 @@ class ViewCog(commands.Cog, name="View Commands"): if quarter_name: df = pd.read_sql_query( sql=session.query(ParticipationPoints) - .where(ParticipationPoints.Cycle == quarter_name) + .where(ParticipationPoints.Cycle.startswith(quarter_name)) .statement, con=engine, )