From 9c5b4e3cc9e1268da386f483a786dad027a57fbd Mon Sep 17 00:00:00 2001 From: Alex Grintsvayg Date: Wed, 25 Sep 2019 10:07:05 -0400 Subject: [PATCH] change trending window to 6 hours --- lbry/lbry/wallet/server/db/trending.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lbry/lbry/wallet/server/db/trending.py b/lbry/lbry/wallet/server/db/trending.py index 650854174..4f8308d2f 100644 --- a/lbry/lbry/wallet/server/db/trending.py +++ b/lbry/lbry/wallet/server/db/trending.py @@ -1,6 +1,6 @@ from math import sqrt -TRENDING_WINDOW = 650 # number of blocks, ~24hr period +TRENDING_WINDOW = 134 # number of blocks in ~6hr period (21600 seconds / 161 seconds per block) TRENDING_DATA_POINTS = 7 # WINDOW * DATA_POINTS = ~1 week worth of trending data CREATE_TREND_TABLE = """