From a4081be4eb581032d83cd7b7bea12fc9993822b7 Mon Sep 17 00:00:00 2001 From: Moritz Warning Date: Sun, 13 Sep 2020 15:02:38 +0200 Subject: [PATCH] misc/collect.py: differentiate duplicate models by target some devices might appear in different targets when migrating to new targets (e.g ar71xx and ath79) --- misc/collect.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/misc/collect.py b/misc/collect.py index 1df923f..9ec1b53 100755 --- a/misc/collect.py +++ b/misc/collect.py @@ -48,6 +48,10 @@ def merge_profiles(profiles, download_url): ) continue + # device is a duplicate, try to differentiate by target + if title in output["models"]: + title = "{} ({})".format(title, target) + output["models"][title] = {"id": id, "target": target, "images": images} if code is not None: -- 2.30.2