mirror of https://github.com/zulip/zulip.git
gcal-bot: Rename variable 'humbug'
It's weird to clobber the module, although it works. (imported from commit 160d6e1c596ba6618c3da9c8cdc2f5cd3ca43dc6)
This commit is contained in:
parent
922b44a1da
commit
25f0eb67bf
|
@ -82,7 +82,7 @@ def get_calendar_url():
|
||||||
|
|
||||||
calendar_url = get_calendar_url()
|
calendar_url = get_calendar_url()
|
||||||
|
|
||||||
humbug = humbug.Client(
|
client = humbug.Client(
|
||||||
email=options.user,
|
email=options.user,
|
||||||
api_key=options.api_key,
|
api_key=options.api_key,
|
||||||
site=options.site,
|
site=options.site,
|
||||||
|
@ -129,10 +129,10 @@ def send_reminders():
|
||||||
else:
|
else:
|
||||||
message = 'Reminder:\n\n' + '\n'.join('* ' + m for m in messages)
|
message = 'Reminder:\n\n' + '\n'.join('* ' + m for m in messages)
|
||||||
|
|
||||||
humbug.send_message(dict(
|
client.send_message(dict(
|
||||||
type = 'private',
|
type = 'private',
|
||||||
to = options.user,
|
to = options.user,
|
||||||
content = message))
|
content = message))
|
||||||
|
|
||||||
sent |= keys
|
sent |= keys
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue