Skip to content
This repository has been archived by the owner on Jan 29, 2025. It is now read-only.

reduced password redundant code #204

Merged
merged 1 commit into from
Nov 3, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions package/password.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
from datetime import datetime

def valid_password(password: int) -> bool:
current_time = int(datetime.now().strftime("%H%M"))
return password == current_time
Loading