<gh_stars>10-100
"""Utility stats functions."""

import logging

from hive.indexer.db_adapter_holder import DbAdapterHolder

log = logging.getLogger(__name__)

class Mentions(DbAdapterHolder):

    @classmethod
    def refresh(cls):
        """Deleting too old mentions"""

        log.warning("Deleting too old mentions")

        cls.db.query_no_return("SELECT delete_hive_posts_mentions();" )

"""Utility stats functions."""

import logging

from hive.indexer.db_adapter_holder import DbAdapterHolder

log = logging.getLogger(__name__)

class Mentions(DbAdapterHolder):

    @classmethod
    def refresh(cls):
        """Deleting too old mentions"""

        log.warning("Deleting too old mentions")

        cls.db.query_no_return("SELECT delete_hive_posts_mentions();" )
Utility stats functions. Deleting too old mentions