Skip to content

Commit

Permalink
✨ chore: bump version to 0.2.17 and update fallback emoji
Browse files Browse the repository at this point in the history
- Update project version from 0.2.16 to 0.2.17 in pyproject.toml
- Modify fallback emoji to use unicode in const.py
- Added newline at end of _sort.py
  • Loading branch information
sudoskys committed Dec 19, 2024
1 parent 9da8a69 commit 625dec0
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "telegram-sticker-utils"
version = "0.2.16"
version = "0.2.17"
description = "easy and fast processing of telegram stickers"
authors = [
{ name = "sudoskys", email = "[email protected]" },
Expand Down
1 change: 1 addition & 0 deletions src/telegram_sticker_utils/core/_sort.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,4 @@
with open(output_file_path, "w", encoding="utf-8") as output_file:
json.dump(sorted_data, output_file, ensure_ascii=False, indent=4)
print(f"排序后的 JSON 文件已保存到: {output_file_path}")

2 changes: 1 addition & 1 deletion src/telegram_sticker_utils/core/const.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ def get_random_emoji_from_text(
:return: 生成的emoji字符
"""
if fallback_emoji is None:
fallback_emoji = emoji.emojize(":heart:")
fallback_emoji = '\N{HEAVY BLACK HEART}'
emoji_candidates = []
# 仅处理文本中下划线后的部分
if "_" in text:
Expand Down

0 comments on commit 625dec0

Please sign in to comment.