1
Fork 0
mirror of https://github.com/pds-nest/nest.git synced 2024-11-25 06:24:19 +00:00
This commit is contained in:
Lorenzo Balugani 2021-05-28 13:01:40 +02:00
parent 7229761587
commit d10d3dd167
2 changed files with 3 additions and 2 deletions

View file

@ -45,6 +45,7 @@ def send_notification_email(alert):
for condition in alert.conditions:
conditions_string += condition.condition.content + ','
conditions_string = conditions_string[:-1]
smtpObj = None
try:
smtpObj = smtplib.SMTP('localhost')
smtpObj.sendmail("alert@nest.com", owner_repo.email, "Alert triggered")

View file

@ -1,8 +1,8 @@
from nest_backend.database import *
import authentication
import nest_crawler.authentication as authentication
from datetime import datetime, timedelta
import tweepy as tw
from associate_condition_tweet import associate_condition_tweet
from nest_crawler.associate_condition_tweet import associate_condition_tweet
def search_repo_conditions(repository_id):