From 50fa029e474ab6075fef9a9f516aa73cc9d40277 Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Mon, 3 Jan 2022 06:09:23 +0200 Subject: [PATCH] fsd --- files/helpers/const.py | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/files/helpers/const.py b/files/helpers/const.py index f74dc5b6f1..50402f0226 100644 --- a/files/helpers/const.py +++ b/files/helpers/const.py @@ -19,13 +19,14 @@ for k, val in result.items(): del result -topmakers = {} -for k, val in marseys.items(): - if val in topmakers: topmakers[val] += 1 - else: topmakers[val] = 1 +if SITE == 'rdrama.net': + topmakers = {} + for k, val in marseys.items(): + if val in topmakers: topmakers[val] += 1 + else: topmakers[val] = 1 -topmakers.pop('unknown') -topmakers = sorted(topmakers.items(), key=lambda x: x[1], reverse=True)[:25] + topmakers.pop('unknown') + topmakers = sorted(topmakers.items(), key=lambda x: x[1], reverse=True)[:25] AJ_REPLACEMENTS = { ' your ': " you're ",