Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/vastsa/FileCodeBox
/ is_expired
Method
is_expired
apps/base/models.py:82–84 ·
view source on GitHub ↗
检查会话是否已过期
(self)
Source
from the content-addressed store, hash-verified
80
expires_at = fields.DatetimeField()
# 会话过期时间
81
82
async
def
is_expired(self):
83
""
"检查会话是否已过期"
""
84
return
self.expires_at < await get_now()
85
86
87
file_codes_pydantic = pydantic_model_creator(FileCodes, name=
"FileCodes"
)
Callers
nothing calls this directly
Calls
1
get_now
Function · 0.90
Tested by
no test coverage detected