diff options
| author | John Turner <jturner.usa@gmail.com> | 2025-09-07 00:42:57 -0400 |
|---|---|---|
| committer | John Turner <jturner.usa@gmail.com> | 2025-09-07 00:42:57 -0400 |
| commit | 14b09ae29c7a526547ed9f9d38d7313fa71bae0e (patch) | |
| tree | ec07a8b670291566074085bd1078564ac15bf38e | |
| parent | 2629092ed70901325bf984315a0d579e931f4d01 (diff) | |
| download | pypaste-14b09ae29c7a526547ed9f9d38d7313fa71bae0e.tar.gz | |
fixup
| -rw-r--r-- | pypaste/database.py | 4 |
1 files changed, 3 insertions, 1 deletions
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): |
