move get_session_id to utils
This commit is contained in:
parent
bc9d0a3f47
commit
23b81317c5
3 changed files with 9 additions and 6 deletions
7
src/utils.py
Normal file
7
src/utils.py
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
from datetime import datetime
|
||||
|
||||
|
||||
@staticmethod
|
||||
def get_session_id() -> str:
|
||||
current_datetime = datetime.now()
|
||||
return current_datetime.strftime("%Y-%m-%d-%H-%M-%S")
|
||||
|
|
@ -65,8 +65,3 @@ class Wrapper:
|
|||
"""checks if file exist for every file in list"""
|
||||
for env_file in env_files:
|
||||
assert env_file.is_file()
|
||||
|
||||
@staticmethod
|
||||
def get_session_id() -> str:
|
||||
current_datetime = datetime.now()
|
||||
return current_datetime.strftime("%Y-%m-%d-%H-%M-%S")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue