def get_announcements_admin(): announcements = Announcement.get_all() announcements_dict = [ announcement.to_dict_admin() for announcement in announcements ] return announcements_dict
def get_announcements(): return Announcement.get_all()