def config():
    """ Synchronization Settings Controller """

    # Get the record ID of the first and only record
    table = s3db.sync_config
    record = db().select(table.id, limitby=(0, 1)).first()
    if not record:
        record_id = table.insert()
    else:
        record_id = record.id

    def postp(r, output):
        if isinstance(output, dict) and "buttons" in output:
            output["buttons"].pop("list_btn", None)
        return output
    s3.postp = postp

    # Can't do anything else than update here
    r = s3_request(args=[str(record_id), "update"], extension="html")
    return r()

# -----------------------------------------------------------------------------
dataset/ETHPy150Open sahana/eden/controllers/sync.py/config/original