Search code examples
brightway

how to list all existing presamples campaigns in brigthway project


How can I list all existing presamples campaigns in my brighway2 project? :)

I've been checking the documentation but I can't find how to do this.


Solution

  • Campaign is a normal peewee Model, so you can follow the peewee querying patterns, e.g. [obj.name for obj in Campaign.select()].