def set_max_ids(max_ids):
    """
    Set max ids of the current downloads

    :param max_ids: A dictionary mapping users to ids
    """
    config.read(CONFIG)
    for user, max_id in max_ids.items():
        config.set(SECTIONS['INCREMENTS'], user, str(max_id))
    with open(CONFIG, 'w') as f:
        config.write(f)
Set max ids of the current downloads

    :param max_ids: A dictionary mapping users to ids