def get_categories(self, app_name):
        """
        Returns a list of the categories for an app name.
        """
        cat_nums = self.apps.get(app_name, {}).get("cats", [])
        cat_names = [self.categories.get("%s" % cat_num, "")
                     for cat_num in cat_nums]

        return cat_names
def get_categories ( self , app_name ) : cat_nums = self . apps . get ( app_name , { } ) . get ( "cats" , [ ] ) cat_names = [ self . categories . get ( "%s" % cat_num , "" ) for cat_num in cat_nums ] return cat_names
Returns a list of the categories for an app name.