You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.
wowstash/wowstash/helpers.py

8 lines
265 B

from wowstash.library.elasticsearch import send_es
from wowstash.library.mattermost import post_webhook
def capture_event(event_type, user_obj):
send_es({'type': event_type, 'user': user_obj.email})
post_webhook(f'`{event_type}` from user {user_obj.id}')