Пример #1
0
def checkOrganizations():
    json = request.json
    for org_id in json['organizations']:
        org = Organization.queryById(org_id)
        if org == None:
            return False
    return True
Пример #2
0
def find_organization(org_id):
    org = Organization.queryById(org_id)
    if org == None:
        abort(404)
    return org.__dict__