fix get_pending_blobs_for_stream

This commit is contained in:
Jack Robison 2018-03-09 14:07:26 -05:00
parent 96e30984c1
commit f07e696c31
No known key found for this signature in database
GPG key ID: DF25C68FE0239BB2

View file

@ -444,8 +444,9 @@ class SQLiteStorage(object):
def get_pending_blobs_for_stream(self, stream_hash):
return self.run_and_return_list(
"select s.blob_hash from stream_blob s where stream_hash=? "
"inner join blob b on b.blob_hash=s.blob_hash and b.status='pending'",
"select s.blob_hash from stream_blob s "
"inner join blob b on b.blob_hash=s.blob_hash and b.status='pending' "
"where stream_hash=?",
stream_hash
)