Skip to content

Commit

Permalink
Updated with fixes based on review
Browse files Browse the repository at this point in the history
  • Loading branch information
zenmonkeykstop committed Nov 14, 2024
1 parent d45be65 commit e46decd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion client/securedrop_client/gui/source/delete/dialog.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ def __init__(self, sources: list[Source], source_total: int) -> None:
).format(number=num_sources)
else:
continue_text = ngettext(
"YES, DELETE ENTIRE SOURCE ACCOUNT",
"YES, DELETE ENTIRE SOURCE ACCOUNT", # in this case, all 1 accounts.
"YES, DELETE ALL {number} SOURCE ACCOUNTS",
num_sources,
).format(number=num_sources)
Expand Down
3 changes: 1 addition & 2 deletions client/securedrop_client/logic.py
Original file line number Diff line number Diff line change
Expand Up @@ -1220,5 +1220,4 @@ def get_source_count(self) -> int:
"""
Return total sourcces in local storage.
"""
sources = list(storage.get_local_sources(self.session))
return len(sources)
return self.session.query(Source).count()

0 comments on commit e46decd

Please sign in to comment.