From 9073c4dee661dddf4bf28fa80fa0ff87f07e5ea3 Mon Sep 17 00:00:00 2001 From: Gosuto Inzasheru Date: Tue, 19 Dec 2023 14:54:02 +0100 Subject: [PATCH] docs: explain ordering --- bal_addresses/addresses.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/bal_addresses/addresses.py b/bal_addresses/addresses.py index 8d656e8a..bd8c9615 100644 --- a/bal_addresses/addresses.py +++ b/bal_addresses/addresses.py @@ -301,6 +301,8 @@ def generate_flatbook(self): self.populate_pools() self.populate_gauges() self.populate_extras() + # write pools and gauges first, so they get overwritten by deployments later + # deployment label should take precedence over pool/gauge label flatbook["pools"] = self.flatten_dict(self.pools) flatbook["gauges"] = self.flatten_dict(self.gauges) for deployment, ddata in self.deployments.items():