def org_site_check(site_id, user_id=None):
 if user_id:
  auth.s3_impersonate(user_id)
 customise = settings.get_org_site_check()
 if customise:
  customise(site_id)
  db.commit()

def org_site_check ( site_id , user_id = None ) : if user_id : auth . s3_impersonate ( user_id ) customise = settings . get_org_site_check ( ) if customise : customise ( site_id ) db . commit ( )
check the status for sites .