electricitymaps / bloom-contrib

Making carbon footprint data available to everyone.
https://www.bloomclimate.com
MIT License
434 stars 104 forks source link

Fix inconsistency with purchase #478

Closed corradio closed 3 years ago

corradio commented 3 years ago

See https://github.com/tmrowco/bloom/issues/229 for details. This fixes the inconsistency mentioned by referring to the right purchase types. Note that we will need to encode a better mapping later on. At least now we have a test :)

FYI @pierresegonne @madsnedergaard @skovhus

corradio commented 3 years ago

Nested switch statements hurts, but not something you introduced here, so LGTM 😅

I'm not completely innocent

image