code: def request(community_id, record_id, accept):
      
      c = Community.get(community_id)
      assert c is not None
      record = Record.get_record(record_id)
      if accept:
          c.add_record(record)
          record.commit()
      else:
          InclusionRequest.create(community=c, record=record,
                                  notify=False)
      db.session.commit()
      RecordIndexer().index_by_id(record.id)
docs: Request a record acceptance to a community.