mirror of
https://github.com/pds-nest/nest.git
synced 2024-11-22 04:54:18 +00:00
Fixes
This commit is contained in:
parent
7229761587
commit
d10d3dd167
2 changed files with 3 additions and 2 deletions
|
@ -45,6 +45,7 @@ def send_notification_email(alert):
|
||||||
for condition in alert.conditions:
|
for condition in alert.conditions:
|
||||||
conditions_string += condition.condition.content + ','
|
conditions_string += condition.condition.content + ','
|
||||||
conditions_string = conditions_string[:-1]
|
conditions_string = conditions_string[:-1]
|
||||||
|
smtpObj = None
|
||||||
try:
|
try:
|
||||||
smtpObj = smtplib.SMTP('localhost')
|
smtpObj = smtplib.SMTP('localhost')
|
||||||
smtpObj.sendmail("alert@nest.com", owner_repo.email, "Alert triggered")
|
smtpObj.sendmail("alert@nest.com", owner_repo.email, "Alert triggered")
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
from nest_backend.database import *
|
from nest_backend.database import *
|
||||||
import authentication
|
import nest_crawler.authentication as authentication
|
||||||
from datetime import datetime, timedelta
|
from datetime import datetime, timedelta
|
||||||
import tweepy as tw
|
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):
|
def search_repo_conditions(repository_id):
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue