From 22bca7a16e7e7618aeb2896ff42b5449959432b3 Mon Sep 17 00:00:00 2001 From: "Brendon J. Brewer" Date: Fri, 31 Jan 2020 07:34:43 +1300 Subject: [PATCH] Length zero could also just mean there aren't any claims --- lbry/wallet/server/db/trending/ar.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lbry/wallet/server/db/trending/ar.py b/lbry/wallet/server/db/trending/ar.py index 3aaa6cdb5..748a57ad4 100644 --- a/lbry/wallet/server/db/trending/ar.py +++ b/lbry/wallet/server/db/trending/ar.py @@ -209,7 +209,7 @@ def run(db, height, final_height, recalculate_claim_hashes): time_boost = get_time_boost(height) # Update claims from db - if len(trending_data.claims) == 0: + if not trending_data.initialised: # On fresh launch for row in db.execute(""" SELECT claim_id, trending_mixed,