chicommons / maps

MIT License
6 stars 18 forks source link

Resolve #155 #179

Closed stepsbystep closed 2 years ago

laredotornado commented 2 years ago

Hi @stepsbystep , this is great! there is one small issue, though. For some entities that do not wish to publish the email, I'm noticing that the word "No" is getting set as their actual email address. For example, on the spradsheet, see "Humboldt Park Montessori School" with ID 852. When the seed_data.yml file is generated, it has

- model: directory.contactmethod
  pk: 1704
  fields:
    type: "EMAIL"
    email: No
- model: directory.coop
  pk: 852
  fields:
    name: "Humboldt Park Montessori School"
    types:
    - ['School']
    addresses: [ 799 ]
    enabled: True
    email: 1704
    web_site: "www.humboldtparkmontessori.com"

Ideally, if they don't wish to publish their email, maybe we just leave out the field entirely instead of print the word "no". So the above would just have

- model: directory.coop
  pk: 852
  fields:
    name: "Humboldt Park Montessori School"
    types:
    - ['School']
    addresses: [ 799 ]
    enabled: True
    web_site: "www.humboldtparkmontessori.com"

Thanks, -