Pull minimum feedback score from settings

master
Mark Veidemanis 2 years ago
parent ae9ecf09c2
commit 4a00cbc3ef
Signed by: m
GPG Key ID: 5ACFCEED46C0904F

@ -508,7 +508,7 @@ class Agora(util.Base):
"require_trusted_by_advertiser": False, "require_trusted_by_advertiser": False,
"online_provider": provider, "online_provider": provider,
"payment_method_details": settings.Platform.PaymentMethodDetails, "payment_method_details": settings.Platform.PaymentMethodDetails,
"require_feedback_score": 100, "require_feedback_score": int(settings.Agora.FeedbackScore),
} }
if visible is False: if visible is False:
form["visible"] = False form["visible"] = False
@ -571,6 +571,9 @@ class Agora(util.Base):
supported_currencies, supported_currencies,
account_info, account_info,
) = self.markets.get_valid_account_details(self.platform) ) = 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: for asset, ad_id, countrycode, currency, provider in our_ads:
if currency in supported_currencies: if currency in supported_currencies:
rtrn = self.create_ad( rtrn = self.create_ad(

Loading…
Cancel
Save