Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion oadr2/event.py
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,8 @@ def handle_payload(self, payload):
old_mod_num = get_mod_number(old_event, self.ns_map) # get it's mod number

# For the events we need to reply to, make our "opts," and check the status of the event
if (old_event is None) or (e_mod_num > old_mod_num) or (response_required == 'always'):
if ((old_event is None) or (e_mod_num > old_mod_num) or (response_required == 'always'))\
and (response_required != "never"):
# By default, we optIn and have an "OK," status (200)
opt = 'optIn'
status = '200'
Expand Down