From cb78e95e3dfc985bb5cf52737ea62a7a02d936b2 Mon Sep 17 00:00:00 2001 From: Victor Shyba Date: Wed, 23 Mar 2022 13:39:56 -0300 Subject: [PATCH] add missing space on query, typo --- lbry/extras/daemon/storage.py | 2 +- tests/integration/datanetwork/test_file_commands.py | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/lbry/extras/daemon/storage.py b/lbry/extras/daemon/storage.py index c53f81a66..f12a53616 100644 --- a/lbry/extras/daemon/storage.py +++ b/lbry/extras/daemon/storage.py @@ -449,7 +449,7 @@ class SQLiteStorage(SQLiteMixin): return await self.db.execute_fetchall( "select blob.blob_hash, blob.blob_length, blob.added_on " "from blob left join stream_blob using (blob_hash) " - "where stream_blob.stream_hash is null and blob.is_mine=?" + "where stream_blob.stream_hash is null and blob.is_mine=? " "order by blob.blob_length desc, blob.added_on asc", (is_mine,) ) diff --git a/tests/integration/datanetwork/test_file_commands.py b/tests/integration/datanetwork/test_file_commands.py index 7472527e5..6772a1ae5 100644 --- a/tests/integration/datanetwork/test_file_commands.py +++ b/tests/integration/datanetwork/test_file_commands.py @@ -580,7 +580,6 @@ class DiskSpaceManagement(CommandTestCase): self.assertLess(0, await self.daemon.storage.run_and_return_one_or_none("select min(added_on) from blob")) - class TestBackgroundDownloaderComponent(CommandTestCase): async def get_blobs_from_sd_blob(self, sd_blob): descriptor = await StreamDescriptor.from_stream_descriptor_blob(