fix diff call

This commit is contained in:
Davide Alberani 2018-01-23 22:47:36 +01:00
parent eae571d5a9
commit ae7ef48dfb

View file

@ -147,7 +147,7 @@ def run_job(id_=None, *args, **kwargs):
if change_fraction < min_change: if change_fraction < min_change:
return return
# send notification # send notification
diff = get_diff(id_, {}).get('diff') diff = get_diff(id_).get('diff')
if not diff: if not diff:
return return
send_email(to=email, subject='%s page changed' % schedule.get('title'), send_email(to=email, subject='%s page changed' % schedule.get('title'),