Grid.from_data()
This commit is contained in:
parent
af443c94b2
commit
de8796d415
@ -652,7 +652,7 @@ class Grid:
|
|||||||
for y, row in enumerate(data):
|
for y, row in enumerate(data):
|
||||||
for x, col in enumerate(row):
|
for x, col in enumerate(row):
|
||||||
if translate is not None and col in translate:
|
if translate is not None and col in translate:
|
||||||
if isinstance(col, Callable):
|
if isinstance(translate[col], Callable):
|
||||||
col = translate[col](col)
|
col = translate[col](col)
|
||||||
else:
|
else:
|
||||||
col = translate[col]
|
col = translate[col]
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user