Merge pull request #2755 from eggplantbren/master

fixed initialization problem with ar trending algorithm
This commit is contained in:
Lex Berezhny 2020-01-30 13:44:25 -05:00 committed by GitHub
commit e639124a69
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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,