def filter_version(version, app_id):
    low = version_int(version)
    return {'appversion.%s.min__lte' % app_id: low}
Returns filters that can be sent to ES for app version ranges.
dataset/ETHPy150Open mozilla/addons-server/src/olympia/legacy_api/utils.py/filter_version