from allianceauth.services.hooks import UrlHook
from allianceauth import hooks
"""from . import urls

@hooks.register('url_hook')
def register_url():
    return UrlHook(urls, 'srpmod', r'^srpmod/')
"""

from .models import FATInTimePeriod

@hooks.register('secure_group_filters') # this is the critical name we are searching for.
def filters(): # can be any name
    return [FATInTimePeriod] # pass in the model classes as an array.


@hooks.register('discord_cogs_hook')
def register_cogs():
    return ["fatfilters.fatcog"]

from allianceauth.services.hooks import UrlHook
from allianceauth import hooks
"""from . import urls

@hooks.register('url_hook')
def register_url():
    return UrlHook(urls, 'srpmod', r'^srpmod/')
"""

from .models import FATInTimePeriod

@hooks.register('secure_group_filters') # this is the critical name we are searching for.
def filters(): # can be any name
    return [FATInTimePeriod] # pass in the model classes as an array.


@hooks.register('discord_cogs_hook')
def register_cogs():
    return ["fatfilters.fatcog"]

from . import urls  @hooks.register('url_hook') def register_url():     return UrlHook(urls, 'srpmod', r'^srpmod/') # this is the critical name we are searching for. # can be any name # pass in the model classes as an array.