Skip to content

Instantly share code, notes, and snippets.

@Ghalko
Ghalko / utils.py
Created August 25, 2015 19:25
Just a test.
def subscriptions_users_union(emails_1, emails_2):
return {
notification:
list(
set(emails_1[notification]).union(set(emails_2[notification]))
)
for notification in constants.NOTIFICATION_TYPES.keys()