Skip to content

Commit

Permalink
(fix): rewritten_by was not being cleared in stats (#110)
Browse files Browse the repository at this point in the history
fix: Don't attempt to get rewrite document if it is null
  • Loading branch information
MarkLark86 committed Nov 4, 2019
1 parent 9b225af commit 95343ef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/analytics/stats/featuremedia_updates.py
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ def finish(self, sender):
}

def get_parent_id(doc):
if 'rewrite_of' not in doc:
if not doc.get('rewrite_of'):
return doc[config.ID_FIELD]
elif doc['rewrite_of'] not in docs:
# If the parent item was not part of this stats iteration
Expand Down

0 comments on commit 95343ef

Please sign in to comment.