mirror of
https://github.com/langgenius/dify.git
synced 2026-04-13 22:57:26 +08:00
Merge branch 'feat/credit-pool' of github.com:langgenius/dify into feat/credit-pool
This commit is contained in:
commit
09998612e7
@ -1,5 +1,4 @@
|
||||
import logging
|
||||
from typing import Optional
|
||||
|
||||
from sqlalchemy import update
|
||||
from sqlalchemy.orm import Session
|
||||
@ -24,7 +23,7 @@ class CreditPoolService:
|
||||
return credit_pool
|
||||
|
||||
@classmethod
|
||||
def get_pool(cls, tenant_id: str, pool_type: str = "trial") -> Optional[TenantCreditPool]:
|
||||
def get_pool(cls, tenant_id: str, pool_type: str = "trial") -> TenantCreditPool | None:
|
||||
"""get tenant credit pool"""
|
||||
return (
|
||||
db.session.query(TenantCreditPool)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user