Merge branch 'feat/education-api' into deploy/dev
This commit is contained in:
commit
1246621cfd
@ -124,12 +124,12 @@ class BillingService:
|
||||
raise EducationActivateLimitError()
|
||||
|
||||
cls.activation_rate_limit.increment_rate_limit(account.email)
|
||||
params = {"account_id": account.id}
|
||||
json = {
|
||||
"account_id": account.id,
|
||||
"institution": institution,
|
||||
"token": token,
|
||||
}
|
||||
return BillingService._send_request("POST", "/education/", json=json)
|
||||
return BillingService._send_request("POST", "/education/", json=json, params=params)
|
||||
|
||||
@classmethod
|
||||
def autocomplete(cls, keywords: str, page: int = 0, limit: int = 20):
|
||||
|
@ -120,7 +120,7 @@ class FeatureService:
|
||||
features.billing.enabled = billing_info["enabled"]
|
||||
features.billing.subscription.plan = billing_info["subscription"]["plan"]
|
||||
features.billing.subscription.interval = billing_info["subscription"]["interval"]
|
||||
features.billing.subscription.education = billing_info["subscription"]["education"] if "education" in billing_info["subscription"] else False
|
||||
features.billing.subscription.education = billing_info["subscription"].get("education", False)
|
||||
|
||||
if "members" in billing_info:
|
||||
features.members.size = billing_info["members"]["size"]
|
||||
|
Loading…
Reference in New Issue
Block a user