~cytrogen/evi-run

ref: 7feec6fc5e0e3a97d110a3cf8691b6165e2e2080 evi-run/bot/scheduler_funcs/daily_tokens.py -rw-r--r-- 343 bytes
7feec6fc — Bendy Fixed a web search issue. DEX analytics is separated into a separate agent. Some other tool routing errors have been fixed. 5 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
from database.repositories.utils import UtilsRepository
from database.models import async_session
from config import TYPE_USAGE


async def add_daily_tokens():
    if TYPE_USAGE != 'private':
        async with async_session() as session_:
            utils_repo = UtilsRepository(session_)
            await utils_repo.update_tokens_daily()