def checkOrganizations(): json = request.json for org_id in json['organizations']: org = Organization.queryById(org_id) if org == None: return False return True
def find_organization(org_id): org = Organization.queryById(org_id) if org == None: abort(404) return org.__dict__