From 328a91c147237f1ab3fb3c1f36e2db857089eb6a Mon Sep 17 00:00:00 2001 From: MuslemRahimi Date: Thu, 17 Apr 2025 11:05:07 +0200 Subject: [PATCH] update rating in analyst db --- app/cron_analyst_db.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/cron_analyst_db.py b/app/cron_analyst_db.py index 0654a4a..d253715 100755 --- a/app/cron_analyst_db.py +++ b/app/cron_analyst_db.py @@ -161,6 +161,9 @@ def calculate_rating(data): elif total_ratings > 30 and overall_success_rate > 50 and overall_average_return > 50: normalized_rating += 0.5 + elif total_ratings >= 10 and overall_success_rate >= 50 and overall_average_return >= 50: + normalized_rating += 0.5 + elif total_ratings >= 10 and overall_success_rate >= 50 and overall_average_return >= 15: normalized_rating += 0.3