from promise import Promise
from promise.dataloader import DataLoader
from requests import retrieve_multiple_news, retrieve_multiple_tags


class NewsLoader(DataLoader):

    def batch_load_fn(self, keys):
        return Promise.resolve(retrieve_multiple_news(keys))


class TagLoader(DataLoader):

    def batch_load_fn(self, keys):
        return Promise.resolve(retrieve_multiple_tags(keys))

cce6275ea765dae8ba3cc33eefd13d7963ab26f4
<mask token>


class TagLoader(DataLoader):

    def batch_load_fn(self, keys):
        return Promise.resolve(retrieve_multiple_tags(keys))

<mask token>


class NewsLoader(DataLoader):
    <mask token>


class TagLoader(DataLoader):

    def batch_load_fn(self, keys):
        return Promise.resolve(retrieve_multiple_tags(keys))

<mask token>


class NewsLoader(DataLoader):

    def batch_load_fn(self, keys):
        return Promise.resolve(retrieve_multiple_news(keys))


class TagLoader(DataLoader):

    def batch_load_fn(self, keys):
        return Promise.resolve(retrieve_multiple_tags(keys))

from promise import Promise
from promise.dataloader import DataLoader
from requests import retrieve_multiple_news, retrieve_multiple_tags


class NewsLoader(DataLoader):

    def batch_load_fn(self, keys):
        return Promise.resolve(retrieve_multiple_news(keys))


class TagLoader(DataLoader):

    def batch_load_fn(self, keys):
        return Promise.resolve(retrieve_multiple_tags(keys))
