Skip to content

Commit

Permalink
Merge pull request #15 from alan-turing-institute/fix-bug-summary-emails
Browse files Browse the repository at this point in the history
Remove unneeded sorting.
  • Loading branch information
pwochner authored Aug 31, 2023
2 parents 004308b + 2aa49b1 commit 4c76dc6
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "RCTab"
version = "1.1.0"
version = "1.1.1"
description = "The RCTab API. Manage Azure budgets and usage"
authors = []

Expand Down
2 changes: 0 additions & 2 deletions rctab/routers/accounting/send_emails.py
Original file line number Diff line number Diff line change
Expand Up @@ -741,7 +741,6 @@ async def get_emails_sent_since(
)
rows = await database.fetch_all(emails_query)
all_emails_sent: List[dict] = [{**row._mapping} for row in rows]
all_emails_sent = sorted(all_emails_sent, key=extract_sub_id)

emails_by_subscription = []
for key, value in groupby(all_emails_sent, extract_sub_id):
Expand Down Expand Up @@ -784,7 +783,6 @@ async def get_finance_entries_since(
)
rows = await database.fetch_all(finance_query)
all_new_entries = [{**row._mapping} for row in rows]
all_new_entries = sorted(all_new_entries, key=extract_sub_id)
entries_by_subscription = []
for key, value in groupby(all_new_entries, extract_sub_id):
name_query = select([subscription_details.c.display_name.label("name")]).where(
Expand Down

0 comments on commit 4c76dc6

Please sign in to comment.