Skip to content

fix(config): add missing TRUST_SCORE weight fields (#231)#257

Open
Hrithik-ui753 wants to merge 1 commit into
sahoo-tech:mainfrom
Hrithik-ui753:fix/trust-score-config-231
Open

fix(config): add missing TRUST_SCORE weight fields (#231)#257
Hrithik-ui753 wants to merge 1 commit into
sahoo-tech:mainfrom
Hrithik-ui753:fix/trust-score-config-231

Conversation

@Hrithik-ui753
Copy link
Copy Markdown
Contributor

📝 Description

This PR resolves an AttributeError thrown during runtime when modules invoke trust scoring features. The calculations reference weight constants (TRUST_SCORE_W1, TRUST_SCORE_W2, and TRUST_SCORE_W3) that were absent from the global settings configuration structure.

🐛 Issue Fixed

Closes #231

🛠️ Changes Made

  • Added default values for TRUST_SCORE_W1 (0.5), TRUST_SCORE_W2 (0.3), and TRUST_SCORE_W3 (0.2) to the global configuration schema.
  • Prevented application failure crashes caused by undefined attributes on the Settings instance.

🚀 Verification Steps

  1. Launched Execra using python main.py.
  2. Triggered logic flows interacting with trust profile configurations.
  3. Verified the operations calculate metrics successfully without throwing an AttributeError: missing TRUST_SCORE fields.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[BUG] Missing Trust Score Configuration Fields Causes Runtime Error

1 participant