def mark_display_case_filled(user_data): """ Marks a user as filled her displaycase. Returns whether or not they should achieve a ProfileCustomizationBadge after this action. """ changed = PromoRecord.record_promo( ProfileCustomizationBadge._PROMO_NAME_DISPLAY_CASE, user_data.user_id) return changed and PromoRecord.has_user_seen_promo( ProfileCustomizationBadge._PROMO_NAME_AVATAR, user_data.user_id)
def r(self, promo_name, user_id): return PromoRecord.record_promo(promo_name, user_id)