Code cleanup

pull/461/head
Koen Van Impe 2019-09-26 20:50:53 +02:00
parent 0e68071ef2
commit 5b7eeaa8ab
1 changed files with 2 additions and 2 deletions

View File

@ -74,7 +74,7 @@ if __name__ == '__main__':
event_id = attribute['event_id']
# Only do something if there is a sighting
if 'Sighting' in attribute and len(attribute['Sighting']) > 0:
if 'Sighting' in attribute:
for sighting in attribute['Sighting']:
if int(sighting['date_sighting']) > minimal_date_sighting:
@ -99,7 +99,7 @@ if __name__ == '__main__':
misp.publish(event_id)
# Only send/print the report if it contains content
if len(report_changes) > 0:
if report_changes:
if args.mail:
if args.mailoptions:
mailoptions = args.mailoptions.split(';')