Length zero could also just mean there aren't any claims

This commit is contained in:
Brendon J. Brewer 2020-01-31 07:34:43 +13:00
parent 6f66b354e5
commit 22bca7a16e

View file

@ -209,7 +209,7 @@ def run(db, height, final_height, recalculate_claim_hashes):
time_boost = get_time_boost(height) time_boost = get_time_boost(height)
# Update claims from db # Update claims from db
if len(trending_data.claims) == 0: if not trending_data.initialised:
# On fresh launch # On fresh launch
for row in db.execute(""" for row in db.execute("""
SELECT claim_id, trending_mixed, SELECT claim_id, trending_mixed,