Skip to content

Commit

Permalink
Ignore Freshmaker events triggered by manual rebuilds in dry run mode
Browse files Browse the repository at this point in the history
  • Loading branch information
sarah256 committed Aug 22, 2019
1 parent 98938b3 commit 5d3ecd3
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions scrapers/freshmaker.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,9 @@ def query_api_and_update_neo4j(self):
except ValueError:
# Skip Freshmaker Events that don't have the search_key as the Advisory ID
continue
if fm_event.get('dry_run'):
# Skip events triggered by manual rebuilds in dry run mode
continue
log.debug('Creating FreshmakerEvent {0}'.format(fm_event['id']))
event_params = dict(
id_=fm_event['id'],
Expand Down

0 comments on commit 5d3ecd3

Please sign in to comment.