gitscope
https://dev.kronoz.win/r/marzneshin.git
app/config/db.py · v0.5.2
Source
1 8111eb7 Dawsh 2y ago from functools import lru_cache
2 8111eb7 Dawsh 2y ago
3 8111eb7 Dawsh 2y ago from app.db import get_jwt_secret_key, GetDB
4 8111eb7 Dawsh 2y ago
5 8111eb7 Dawsh 2y ago
6 8111eb7 Dawsh 2y ago @lru_cache(maxsize=None)
7 8111eb7 Dawsh 2y ago def get_secret_key():
8 8111eb7 Dawsh 2y ago with GetDB() as db:
9 8111eb7 Dawsh 2y ago return get_jwt_secret_key(db)