Skip to content

Commit

Permalink
fix: reattend day range
Browse files Browse the repository at this point in the history
  • Loading branch information
SamuNatsu committed Aug 20, 2024
1 parent 432e8a3 commit bcbd109
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "nonebot-plugin-deer-pipe"
version = "0.3.1"
version = "0.3.2"
description = "A deer-pipe attendance nonebot2 plugin"
authors = [
{name = "SNRainiar", email = "[email protected]"},
Expand Down
2 changes: 1 addition & 1 deletion src/nonebot_plugin_deer_pipe/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ async def _(
day: int = result.main_args["day"]
now: datetime = datetime.now()

if day < 0 or day >= now.day:
if day <= 0 or day >= now.day:
await UniMessage.text(f"不是合法的补🦌日期捏").finish(reply_to=True)

ok, deer = await reattend(now, day, user_info.user_id)
Expand Down

0 comments on commit bcbd109

Please sign in to comment.