removing ftp warning in a more elegant way, still need to implement
regular sending
This commit is contained in:
@@ -1281,6 +1281,8 @@ def handle_get_garmin_file(client_id,
|
||||
*args,
|
||||
**kwargs):
|
||||
|
||||
dologging('garminlog.log','Fetching URL {url}'.format(url=url))
|
||||
|
||||
regex = '.*\?id=(\d+)'
|
||||
try: # pragma: no cover
|
||||
m = re.compile(regex).match(url).group(1)
|
||||
@@ -2000,9 +2002,6 @@ def handle_sendemail_expired(useremail, userfirstname, userlastname, expireddate
|
||||
|
||||
@app.task
|
||||
def handle_sendemail_newftp(rower,power,mode, **kwargs):
|
||||
# temporary, delete following line after implementing sending these emails once per week
|
||||
return 1
|
||||
|
||||
subject = "You may want to update your FTP on rowsandall.com"
|
||||
from_email = 'Rowsandall <info@rowsandall.com>'
|
||||
|
||||
|
||||
Reference in New Issue
Block a user