Skip to content

Commit a6552e2

Browse files
committed
minor fixes
1 parent fe85374 commit a6552e2

2 files changed

Lines changed: 4 additions & 5 deletions

File tree

weeklypedia/mail.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
KEY = secrets.get('mc')
1515
SENDY_KEY = secrets.get('sendy_key')
1616

17-
SENDY_URL = 'http://mailer.hatnote.com/s/'
17+
SENDY_URL = 'https://mailer.hatnote.com/s/'
1818
TEST_LIST_ID = "a5ecbc7404"
1919
DEFAULT_LIST = TEST_LIST_ID
2020

weeklypedia/publish.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
from argparse import ArgumentParser
77
from clastic.render import AshesRenderFactory
88

9-
from common import DEBUG, DEBUG_LIST_ID, SENDKEY, SUPPORTED_LANGS
9+
from common import DEBUG, DEBUG_LIST_ID, SENDKEY, SUPPORTED_LANGS, SENDY_IDS
1010

1111
from web import (comma_int,
1212
ISSUE_TEMPLATES_PATH)
@@ -20,7 +20,6 @@
2020
with open(os.path.join(_CUR_PATH, 'secrets.json')) as secrets_json:
2121
secrets = json.load(secrets_json)
2222
LIST_ID_MAP = secrets.get('list_ids')
23-
SENDY_ID_MAP = secrets.get('sendy_ids')
2423

2524

2625
def send_issue(lang, mailer, is_dev=False):
@@ -30,10 +29,10 @@ def send_issue(lang, mailer, is_dev=False):
3029
if is_dev:
3130
list_id = DEBUG_LIST_ID
3231
else:
33-
list_id = LIST_ID_MAP[lang]
32+
list_id = SENDY_IDS[lang]
3433
result = cur_issue.send(list_id, SENDKEY)
3534
elif mailer == 'sendy':
36-
list_id = SENDY_ID_MAP[lang]
35+
list_id = SENDY_IDS[lang]
3736
result = cur_issue.sendy_send(list_id)
3837
return result
3938

0 commit comments

Comments
 (0)