Skip to content

Commit

Permalink
reduced password redundant code (#204)
Browse files Browse the repository at this point in the history
  • Loading branch information
tannuiscoding authored Nov 3, 2024
1 parent 51ebcdf commit 9897cab
Showing 1 changed file with 5 additions and 0 deletions.
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

0 comments on commit 9897cab

Please sign in to comment.