Skip to content

Commit

Permalink
add 30 minutes timepicker values
Browse files Browse the repository at this point in the history
  • Loading branch information
EreminAnton committed Jul 29, 2023
1 parent 89307e4 commit c49070b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/slack_helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -383,6 +383,7 @@ def get_message_from_timestamp(channel_id: str, message_ts: str, slack_client: s

def get_max_duration_block(cfg: config.Config) -> list[Option]:
return [
Option(text=PlainTextObject(text=f"{i:02d}:00"), value=f"{i:02d}:00")
for i in range(1, cfg.max_permissions_duration_time + 1)
Option(text=PlainTextObject(text=f"{i // 2:02d}:{(i % 2) * 30:02d}"), value=f"{i // 2:02d}:{(i % 2) * 30:02d}")
for i in range(1, cfg.max_permissions_duration_time * 2 + 1)
]

0 comments on commit c49070b

Please sign in to comment.