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 x, col in enumerate(row):
|
||||
if translate is not None and col in translate:
|
||||
if isinstance(col, Callable):
|
||||
if isinstance(translate[col], Callable):
|
||||
col = translate[col](col)
|
||||
else:
|
||||
col = translate[col]
|
||||
|
||||
Loading…
Reference in New Issue
Block a user