From: Moritz Warning Date: Sun, 13 Sep 2020 13:02:38 +0000 (+0200) Subject: misc/collect.py: differentiate duplicate models by target X-Git-Tag: v3.0.0~5 X-Git-Url: http://git.openwrt.org/ubox.git?a=commitdiff_plain;h=a4081be4eb581032d83cd7b7bea12fc9993822b7;p=web%2Ffirmware-selector-openwrt-org.git 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) --- 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: