Skip to content

Commit

Permalink
Bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
fedecalendino committed Dec 20, 2022
1 parent d6734f4 commit 482c245
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ note: not all emojis are available in all languages.</string>
</dict>
</array>
<key>version</key>
<string>2.0.1</string>
<string>2.0.2</string>
<key>webaddress</key>
<string>https://github.com/fedecalendino/alfred-emoji-mate</string>
</dict>
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "Emoji Mate"
version = "2.0.1"
version = "2.0.2"
description = "Quickly search for emojis"
documentation = "https://github.com/fedecalendino/alfred-emoji-mate/blob/main/README.md"
homepage = "https://github.com/fedecalendino/alfred-emoji-mate"
Expand Down
5 changes: 2 additions & 3 deletions src/emojis.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
from emoji import EMOJI_DATA

VALID_SKIN_TONES = {
"": "",
"light": "_light_skin_tone",
"medium-light": "_medium-light_skin_tone",
"medium": "_medium_skin_tone",
Expand All @@ -26,8 +25,8 @@ def build():

lang = os.getenv("LANG", "en").lower()

skin_tone = os.getenv("SKIN_TONE", "light").lower()
skin_tone = VALID_SKIN_TONES.get(skin_tone)
skin_tone = os.getenv("SKIN_TONE") or ""
skin_tone = VALID_SKIN_TONES.get(skin_tone.lower()) or ""

# sort emojis from olders to newest
for emoji, data in sorted(EMOJI_DATA.items(), key=lambda kv: kv[1]["E"]):
Expand Down

0 comments on commit 482c245

Please sign in to comment.