]>
Commit | Line | Data |
---|---|---|
97e15cf6 MT |
1 | #!/usr/bin/python3 |
2 | ||
3 | import tornado.web | |
4 | ||
5 | from . import base | |
6 | ||
7 | class IndexHandler(base.BaseHandler): | |
8 | @tornado.web.authenticated | |
9 | async def get(self): | |
10 | # Fetch all available lists | |
11 | lists = await self.backend.lists.get_lists() | |
12 | ||
13 | # Fetch all subscribed lists | |
14 | subscribed_lists = await self.current_user.get_lists() | |
15 | ||
16 | self.render("lists/index.html", lists=lists, subscribed_lists=subscribed_lists) |