Skip to content

Commit

Permalink
Merge pull request #126 from brave/add_support_for_min_max_os_version
Browse files Browse the repository at this point in the history
Add support for min_os_version and max_os_version
  • Loading branch information
tmancey authored Sep 24, 2021
2 parents aece90c + 88cd6dc commit cc821b1
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions seed/serialize.py
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,12 @@ def serialize_and_save_variations_seed_message(seed_data, path):
if 'max_version' in study_data['filter']:
study.filter.max_version = study_data['filter']['max_version']

if 'min_os_version' in study_data['filter']:
study.filter.min_os_version = study_data['filter']['min_os_version']

if 'max_os_version' in study_data['filter']:
study.filter.max_os_version = study_data['filter']['max_os_version']

# Serialize and save
with open(path, "wb") as file:
file.write(seed.SerializeToString())
Expand Down

0 comments on commit cc821b1

Please sign in to comment.