From 4a00cbc3ef0c415a74f867dca5b52e6235d1ccce Mon Sep 17 00:00:00 2001 From: Mark Veidemanis Date: Wed, 20 Apr 2022 21:15:50 +0100 Subject: [PATCH] Pull minimum feedback score from settings --- handler/sources/agora.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/handler/sources/agora.py b/handler/sources/agora.py index e9d02db..62cb499 100644 --- a/handler/sources/agora.py +++ b/handler/sources/agora.py @@ -508,7 +508,7 @@ class Agora(util.Base): "require_trusted_by_advertiser": False, "online_provider": provider, "payment_method_details": settings.Platform.PaymentMethodDetails, - "require_feedback_score": 100, + "require_feedback_score": int(settings.Agora.FeedbackScore), } if visible is False: form["visible"] = False @@ -571,6 +571,9 @@ class Agora(util.Base): supported_currencies, account_info, ) = self.markets.get_valid_account_details(self.platform) + if not our_ads: + self.log.error("Could not get our ads.") + return False for asset, ad_id, countrycode, currency, provider in our_ads: if currency in supported_currencies: rtrn = self.create_ad(