コード例 #1
0
ファイル: unslackify.py プロジェクト: zfouts/response
def unslackify(value):
    """Takes a string and turns slack style :emoji: into unicode"""

    value = slack_to_human_readable(value)

    # replace all colon style :emoji: with unicode
    value = emoji_data_python.replace_colons(value)

    return value
コード例 #2
0
ファイル: serializers.py プロジェクト: dmichau/response
 def get_details_ui(self, instance):
     details_ui = slack_to_human_readable(instance.details)
     details_ui = emoji_data_python.replace_colons(details_ui)
     return details_ui
コード例 #3
0
ファイル: serializers.py プロジェクト: dmichau/response
 def get_text_ui(self, instance):
     text_ui = slack_to_human_readable(instance.text)
     text_ui = emoji_data_python.replace_colons(text_ui)
     return text_ui