Esri / Esri/crowdsource-reporter-scripts

issue with subbing values not from fields

Open
#60 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
13
Forks
11
PR merge metrics
No merged PRs in 30d

Description

There is an error in the script. Line that says:
email_subject = email_subject.replace(sub, str(feature.attributes[message['body substitutions'][sub]]))

This tries to replace using a field value, but you are building the URL with configured strings, not field values. It works if you change this line to say:
email_subject = email_subject.replace(sub, str(message['body substitutions'][sub]))

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.