question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Contributor Form emails sending when fields are empty

See original GitHub issue

from models.ContributorForm

    def should_notify(self):
        """
        If this evaluates to true, we send an email to the recruitment team.
        """
        return (
            (self.ideas != None)
            | (self.features != None)
            | (self.experience != None)
            | (self.contribute_ways != None)
            | (self.expertise != None)
        )

however emails are being sent when all should be None

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:8 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
faizjamilcommented, Aug 23, 2021

Yes, I need to do a quick look through of SQLAlchemy today and see where to go from there.

On Mon, Aug 23, 2021, 5:02 AM Itsi Weinstock @.***> wrote:

Hey @faizjamil https://github.com/faizjamil are you still working on this? This is becoming a higher priority issue for us receiving the empty emails

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/Couchers-org/couchers/issues/1770#issuecomment-903577391, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABUCMSX2PGJIVPCU4HR6A5DT6IFA7ANCNFSM5BRLDRQA . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&utm_campaign=notification-email .

0reactions
faizjamilcommented, Sep 6, 2021

Go for it.

On Mon, Sep 6, 2021, 11:16 AM Aapeli Vuorinen @.***> wrote:

Hey; sorry. I’m going to grab this and fix it up quick. The support team is getting frustrated with the bombardment of emails, and I think debugging this requires having a look at the existing rows in the DB!

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/Couchers-org/couchers/issues/1770#issuecomment-913722050, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABUCMSXLWCTUWBSH5BPZ7C3UATLNXANCNFSM5BRLDRQA . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Receiving Empty email from Submit form every day around the ...
Validate the input on the PHP side before you send the email. eg: $valid = true; $name = $_POST['name']; if(empty($name)) { echo('Please ...
Read more >
The 'To' field shows empty for the emails received...
The 'To' field shows empty for the emails received in SNOW instance. When the email template type is 'Email and Not Email Address'...
Read more >
Microsoft Forms Notification - Power Platform Community
I want to create a Power Automate email notification that emails a ... was a comment (the field is not empty), send the...
Read more >
Email address field body is empty [#2834352] | Drupal.org
In my form I have an email field that is causing me problems. The form is "Send To" whatever email address I set...
Read more >
Error sending emails when reply-to setting contains empty string
Typing an empty string (by typing and then pressing backspace) into the reply-to address field in the Admin > Settings > Email form...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found