Skip to content

Commit

Permalink
time added for logs
Browse files Browse the repository at this point in the history
  • Loading branch information
Jordan-Prescott committed Nov 11, 2023
1 parent b6a85ff commit f859c36
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion odin_api/utils/generators.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
from datetime import datetime

def generate_password(length=8):
characters = string.ascii_letters + string.digits + string.punctuation
password = ''.join(secrets.choice(characters) for _ in range(length))
return password
return password

def generate_timestamp():
return datetime.now().strftime("%Y-%m-%d %H:%M:%S")

0 comments on commit f859c36

Please sign in to comment.