Changes:
- EE: fixed /accounts - merged license status into /accounts
This commit is contained in:
parent
642374af1f
commit
d2f898a291
2 changed files with 7 additions and 6 deletions
|
|
@ -71,11 +71,12 @@ def get_account(context):
|
||||||
"limits": {
|
"limits": {
|
||||||
"teamMember": -1,
|
"teamMember": -1,
|
||||||
"projects": -1,
|
"projects": -1,
|
||||||
"metadata": metadata.get_remaining_metadata_with_count(context['tenantId'])},
|
"metadata": metadata.get_remaining_metadata_with_count(context['tenantId'])
|
||||||
|
},
|
||||||
|
**license.get_status(context["tenantId"])
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@app.route('/projects', methods=['GET'])
|
@app.route('/projects', methods=['GET'])
|
||||||
def get_projects(context):
|
def get_projects(context):
|
||||||
return {"data": projects.get_projects(tenant_id=context["tenantId"], recording_state=True, gdpr=True, recorded=True,
|
return {"data": projects.get_projects(tenant_id=context["tenantId"], recording_state=True, gdpr=True, recorded=True,
|
||||||
|
|
|
||||||
|
|
@ -70,13 +70,13 @@ def get_account(context):
|
||||||
**r,
|
**r,
|
||||||
"limits": {
|
"limits": {
|
||||||
"teamMember": -1,
|
"teamMember": -1,
|
||||||
# change this in open-source
|
"projects": -1,
|
||||||
"projects": -1, # change this in open-source
|
"metadata": metadata.get_remaining_metadata_with_count(context['tenantId'])
|
||||||
"metadata": metadata.get_remaining_metadata_with_count(context['tenantId'])},
|
},
|
||||||
|
**license.get_status(context["tenantId"])
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@app.route('/projects', methods=['GET'])
|
@app.route('/projects', methods=['GET'])
|
||||||
def get_projects(context):
|
def get_projects(context):
|
||||||
return {"data": projects.get_projects(tenant_id=context["tenantId"], recording_state=True, gdpr=True, recorded=True,
|
return {"data": projects.get_projects(tenant_id=context["tenantId"], recording_state=True, gdpr=True, recorded=True,
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue