update rating in analyst db

This commit is contained in:
MuslemRahimi 2025-04-17 11:05:07 +02:00
parent bee8842150
commit 328a91c147

View File

@ -161,6 +161,9 @@ def calculate_rating(data):
elif total_ratings > 30 and overall_success_rate > 50 and overall_average_return > 50: elif total_ratings > 30 and overall_success_rate > 50 and overall_average_return > 50:
normalized_rating += 0.5 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: elif total_ratings >= 10 and overall_success_rate >= 50 and overall_average_return >= 15:
normalized_rating += 0.3 normalized_rating += 0.3