Пример #1
0
    def get_from_registry(cls):
        """
        Getting webhook from registry using the code.
        """

        from hurricane.metrics import registry

        return registry.get(cls.code)
Пример #2
0
    def get_from_registry(cls):
        from hurricane.metrics import registry

        return registry.get(cls.code)