Skip to content

Commit

Permalink
Fetch emoji mapping before updating repository (#2126)
Browse files Browse the repository at this point in the history
  • Loading branch information
davfsa authored Dec 7, 2024
1 parent 0526c90 commit 37b8472
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions scripts/ci/test_twemoji_mapping.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,10 @@

start = time.perf_counter()

print("Fetching emoji mapping")
with urllib.request.urlopen(DISCORD_EMOJI_MAPPING_URL) as request:
mapping = json.loads(request.read())["emojiDefinitions"]

has_items = next(tempdir.iterdir(), False)
if has_items:
print("Updating twemoji collection")
Expand All @@ -57,10 +61,6 @@
print("Cloning twemoji collection")
subprocess.check_call(f"git clone {TWEMOJI_REPO_BASE_URL} {tempdir} --depth=1", shell=True)

print("Fetching emoji mapping")
with urllib.request.urlopen(DISCORD_EMOJI_MAPPING_URL) as request:
mapping = json.loads(request.read())["emojiDefinitions"]

assets_path = tempdir / "assets" / "72x72"

invalid_emojis = []
Expand Down

0 comments on commit 37b8472

Please sign in to comment.