@classmethod
    def get_all_categories(cls, redis_conn):
        categories = []
        hash_map = redis_conn.hgetall(cls.CAT_META_HASH)
        for key in hash_map:
            if key.endswith(cls.SIGNATURE_KEY):
                categories.append(cls(
                    redis_conn,
                    cat_id=key.replace(":" + cls.SIGNATURE_KEY, "")
                ))
        return categories
Return a list of all currently defined categories
dataset/ETHPy150Open gmcquillan/firetower/firetower/category.py/Category.get_all_categories