細かい修正
This commit is contained in:
parent
36247d7607
commit
bc6b871b6c
1 changed files with 2 additions and 2 deletions
4
app.py
4
app.py
|
@ -40,8 +40,8 @@ def content_to_linksets(content: str) -> str:
|
|||
return "\n".join(groups)
|
||||
|
||||
def is_over_n_hours(src: datetime, hours: int) -> bool:
|
||||
now = datetime.now().astimezone(timezone.utc)
|
||||
return now - src >= timedelta(hours=hours)
|
||||
now = datetime.now()
|
||||
return now - src.replace(tzinfo=None) > timedelta(hours=hours)
|
||||
|
||||
# 初期化
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue