592
592
def add_mod_event(request, msg_id, list_id, action):
593
593
"""Adds a Moderation Event Log For Event Tracker."""
594
597
the_list = List.objects.get_or_404(fqdn_listname=list_id)
595
598
the_msg = next((each for each in the_list.held if each['request_id'] == int(msg_id)), None)
596
599
event = 'moderation-' + action