Commit 1eec97ab authored by IS1_4M's avatar IS1_4M
Browse files

updated for craigs modification

parent 3f769c8e
......@@ -16,7 +16,7 @@ from PublicChannel import PubChanSuite, PublicChan
from ClubChannel import ClubSuite, Club
from restrictedchannel import RestrictChan, RestrictChanSuite
from handles import User, ECMember, ECStudent, ECFaculty, Organizer, Convener, Admin, SuperAdmin
#from rssfeedtest import get_today_at_earlham
from rssfeedtest import get_today_at_earlham
import json
def get_member_by_discord_name(guild, discord_name):
......@@ -69,7 +69,7 @@ async def update_today_at_schools():
print('searching guild:', guild.name)
today_at_school = None
today_at_virtual_school = None
virtual_annoucements, local_annoucements = [], []#get_today_at_earlham()
virtual_annoucements, local_annoucements = get_today_at_earlham()
for channel in guild.channels:
print(channel.name)
print('\t', channel.name == 'today-at-earlham', channel.name == 'today-at-remote-earlham')
......
......@@ -33,5 +33,5 @@ def get_today_at_earlham():
if 'virtual' in announcementl or 'zoom' in announcementl or 'remote' in announcementl or 'online' in announcementl:
virtual_announcements.append(announcement)
else:
local_announcements.append(announcement)
return virtual_announcements, local_announcements
local_announcements.append(announcementl)
return virtual_announcements, local_announcements
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment