Skip to content

Commit

Permalink
Merge pull request #21 from Moesif/fix-regex-sampling-rate
Browse files Browse the repository at this point in the history
#186450397 Refactor: Fix regex sampling rate
  • Loading branch information
keyur9 authored Nov 17, 2023
2 parents e5546eb + 711cb75 commit ccb97fb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion moesifpythonrequest/app_config/app_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ def get_sampling_percentage(self, event_data, config, user_id, company_id):
if regex_config:
config_mapping = self.regex_config_helper.prepare_config_mapping(event_data)
regex_sample_rate = self.regex_config_helper.fetch_sample_rate_on_regex_match(regex_config, config_mapping)
if regex_sample_rate:
if regex_sample_rate is not None:
return regex_sample_rate

if user_id and user_sample_rate and user_id in user_sample_rate:
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
# Versions should comply with PEP440. For a discussion on single-sourcing
# the version across setup.py and the project code, see
# https://packaging.python.org/en/latest/single_source_version.html
version='0.3.1',
version='0.3.2',

description='Moesif Python request',
long_description=long_description,
Expand Down

0 comments on commit ccb97fb

Please sign in to comment.