move merge_dicts into goat-tools
This commit is contained in:
@@ -182,18 +182,6 @@ def rescale_text_for_sizes (*args):
|
||||
def rescale_text_for_size (threshold, minimum, maximum):
|
||||
return rescale_text_for_sizes([threshold, minimum], [0, maximum])
|
||||
|
||||
def merge_dicts (dicts):
|
||||
fusion = {}
|
||||
for source in dicts:
|
||||
if not source:
|
||||
continue
|
||||
|
||||
for key, value in source.items():
|
||||
if isinstance(value, dict):
|
||||
value = merge_dicts([fusion.get(key, None), value])
|
||||
fusion[key] = value
|
||||
return fusion
|
||||
|
||||
def draw_card (card, frame):
|
||||
image = frame['image']
|
||||
if isinstance(image, str):
|
||||
|
||||
Reference in New Issue
Block a user