fix schedule (#1286)
This commit is contained in:
+2
-2
@@ -8712,8 +8712,8 @@ async def schedule_cmd(interaction: discord.Interaction):
|
|||||||
br_str = f"{br:.1f}"
|
br_str = f"{br:.1f}"
|
||||||
date_str = f"<t:{start_ts}:d> — <t:{end_ts}:d>"
|
date_str = f"<t:{start_ts}:d> — <t:{end_ts}:d>"
|
||||||
|
|
||||||
is_past = now > end_ts + 86399
|
is_past = now >= end_ts
|
||||||
is_current = start_ts <= now <= end_ts + 86399
|
is_current = start_ts <= now < end_ts
|
||||||
|
|
||||||
if is_past:
|
if is_past:
|
||||||
lines.append(f"> ~~**{br_str} ({date_str})**~~")
|
lines.append(f"> ~~**{br_str} ({date_str})**~~")
|
||||||
|
|||||||
Reference in New Issue
Block a user