Skip to content

Commit

Permalink
send notice add arg:participant_type_id
Browse files Browse the repository at this point in the history
  • Loading branch information
blackholll committed Mar 18, 2019
1 parent c142c80 commit d2175e4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,8 @@ def send_ticket_notice(ticket_id):
notice_script_file_name = notice_obj.script.name
notice_script_file = os.path.join(settings.MEDIA_ROOT, notice_script_file_name)

globals = {'title_result': title_result, 'content_result': content_result, 'participant': ticket_obj.participant}
globals = {'title_result': title_result, 'content_result': content_result, 'participant': ticket_obj.participant,
'participant_type_id': ticket_obj.participant_type_id}
try:
with stdoutIO() as s:
# execfile(script_file, globals) # for python 2
Expand Down

0 comments on commit d2175e4

Please sign in to comment.