Use lowercase name for file paths
This commit is contained in:
parent
fe075c7c73
commit
13880a3b88
1 changed files with 2 additions and 2 deletions
|
@ -45,11 +45,11 @@ class FormApp(npyscreen.NPSAppManaged):
|
||||||
|
|
||||||
def get_filepath(self):
|
def get_filepath(self):
|
||||||
name = self.base_data.get_form_values_dict()['fullname']
|
name = self.base_data.get_form_values_dict()['fullname']
|
||||||
fn = '{}_{}.json'.format('_'.join(name.split()), datetime.datetime.now().replace(microsecond=0).isoformat())
|
date = datetime.datetime.now().replace(microsecond=0).isoformat()
|
||||||
|
fn = '{}_{}.json'.format('_'.join(name.lower().split()), date)
|
||||||
if self.is_new_member:
|
if self.is_new_member:
|
||||||
print('Enter destination directory for new Member data:')
|
print('Enter destination directory for new Member data:')
|
||||||
self.dir_path = input()
|
self.dir_path = input()
|
||||||
|
|
||||||
file_path = pathlib.Path(self.dir_path, fn)
|
file_path = pathlib.Path(self.dir_path, fn)
|
||||||
return file_path
|
return file_path
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue