Пример #1
0
    def get(self):
        """Return the list of PGY.

        """
        self.response.cache_control = 'public'
        self.response.cache_control.max_age = 300
        self.render_json({
            "type": "topics",
            "topics": [{
                "id": topic,
                "label": topic.title()
            } for topic in RoshReviewUserStats.get_topics()]
        })
Пример #2
0
    def get(self):
        """Return the list of PGY.

        """
        self.response.cache_control = 'public'
        self.response.cache_control.max_age = 300
        self.render_json({
            "type":
            "topics",
            "topics": [{
                "id": topic,
                "label": topic.title()
            } for topic in RoshReviewUserStats.get_topics()]
        })
Пример #3
0
 def __init__(self, *args, **kw):
     super(FakeStudents, self).__init__(*args, **kw)
     self.rosh_review_topics = RoshReviewUserStats.get_topics()
     self.firstaid_topics = FirstAidUserStats.get_topics().map(
         lambda k: k.id(), keys_only=True
     )