From 14b09ae29c7a526547ed9f9d38d7313fa71bae0e Mon Sep 17 00:00:00 2001 From: John Turner Date: Sun, 7 Sep 2025 00:42:57 -0400 Subject: fixup --- pypaste/database.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pypaste/database.py b/pypaste/database.py index dfdd699..186259b 100644 --- a/pypaste/database.py +++ b/pypaste/database.py @@ -69,7 +69,9 @@ class Database: async def storage_use(self) -> Optional[int]: def do(): with sqlite3.connect(self.path) as connection: - return connection.execute("select sum(pastes.size) from pastes") + return connection.execute( + "select sum(pastes.size) from pastes" + ).fetchone() match asyncio.to_thread(do): case int(use): -- cgit v1.2.3