Compare commits

..

No commits in common. "d3800584b521fc572188a1a72b29180b52505803" and "0fe4a3ed79f0ac37ec21ba838e30a85fe46e525e" have entirely different histories.

2 changed files with 3 additions and 6 deletions

View file

@ -391,8 +391,8 @@ WALLET_USER_BILLBOARD_VISIT_INCOME = config('WALLET_USER_BILLBOARD_VISIT_INCOME'
# wallet above. TODO(you): replace with the real wallet-type UUID from the wallet service. # wallet above. TODO(you): replace with the real wallet-type UUID from the wallet service.
WALLET_PROMOTIONS_TRANSIT = config('WALLET_PROMOTIONS_TRANSIT', cast=str) WALLET_PROMOTIONS_TRANSIT = config('WALLET_PROMOTIONS_TRANSIT', cast=str)
# Same wallet-service UUID as the advertising repo's own WALLET_ADVERTISING_TRANSIT setting. # Same wallet-service UUID as the advertising repo's own WALLET_ADVERTISING_TRANSIT setting.
# Destination for a Recipient whose wallet_destination is advertising_transit — billboard/ad # Destination for promotion types that fund billboard/ad credit rather than a cash-like user
# credit rather than a cash-like user reward — see Recipient.get_wallet_category_uuid(). # reward (CAPTURE, FIRST_AD_CREATE) — see Recipient.get_wallet_category_uuid().
WALLET_ADVERTISING_TRANSIT = config('WALLET_ADVERTISING_TRANSIT', cast=str) WALLET_ADVERTISING_TRANSIT = config('WALLET_ADVERTISING_TRANSIT', cast=str)
NOTIFICATIONS_BASE_PUBLIC_URL = config('NOTIFICATIONS_BASE_PUBLIC_URL', default=None, cast=str) NOTIFICATIONS_BASE_PUBLIC_URL = config('NOTIFICATIONS_BASE_PUBLIC_URL', default=None, cast=str)

View file

@ -75,9 +75,7 @@ def get_notifications_client():
return client return client
def notifications_push_user(user_uuid, title, message, priority=5, extras=None, click_url=None): def notifications_push_user(user_uuid, title, message, priority=5, extras=None):
# click_url is optional — most notifications aren't clickable. When set,
# the notifications service embeds it as the tap destination.
class Tmp(): class Tmp():
def to_dict(self): def to_dict(self):
return { return {
@ -85,7 +83,6 @@ def notifications_push_user(user_uuid, title, message, priority=5, extras=None,
'message': message, 'message': message,
'priority': priority, 'priority': priority,
'extras': extras, 'extras': extras,
'click_url': click_url,
} }
push_data = Tmp() push_data = Tmp()