From 3cb7b495f59e949890c12b3d36a2f417a49d7efe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Benjamin=20Melan=C3=A7on?= Date: Tue, 1 Jun 2021 20:48:57 -0400 Subject: [PATCH] Elegant merge operator, minus the typo --- pomodoro_to_harvest.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pomodoro_to_harvest.py b/pomodoro_to_harvest.py index fb9a9b6..c129527 100644 --- a/pomodoro_to_harvest.py +++ b/pomodoro_to_harvest.py @@ -136,7 +136,7 @@ other_project_names = { "Personal": ["Personal/external", "Personal / external", "External"], } -replacement_project_names = harvest_project_names.copy | other_project_names +replacement_project_names = harvest_project_names | other_project_names for preferred, alternatives in replacement_project_names.items(): # We compare all alternatives to lower case versions, and add the