From d278f6a54a2a316e70271ad04bd206e49a93fa5f Mon Sep 17 00:00:00 2001 From: Lex Neva Date: Sat, 18 Feb 2023 22:24:58 -0500 Subject: add tiles json and internationalization --- lib/stitches/meander_fill.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'lib/stitches/meander_fill.py') diff --git a/lib/stitches/meander_fill.py b/lib/stitches/meander_fill.py index 6278b0ad..964a7a41 100644 --- a/lib/stitches/meander_fill.py +++ b/lib/stitches/meander_fill.py @@ -33,11 +33,11 @@ def meander_fill(fill, shape, shape_index, starting_point, ending_point): return post_process(generate_meander_path(graph, start, end, rng), shape, fill) -def get_tile(tile_name): - all_tiles = {tile.name: tile for tile in tiles.all_tiles()} +def get_tile(tile_id): + all_tiles = {tile.id: tile for tile in tiles.all_tiles()} try: - return all_tiles.get(tile_name, all_tiles.popitem()[1]) + return all_tiles.get(tile_id, all_tiles.popitem()[1]) except KeyError: return None -- cgit v1.2.3