Use lowercase name for file paths #16

Manually merged
dkdent merged 1 commit from lowercase-paths into master 2020-03-22 20:59:45 +01:00
Showing only changes of commit e730577d13 - Show all commits

View file

@ -45,7 +45,8 @@ class FormApp(npyscreen.NPSAppManaged):
def get_filepath(self):
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)
file_path = pathlib.Path(self.dir_path, fn)
return file_path