Merge pull request 'remove colons from filename to avoid conflicts with windows filesystem' (#17) from windows-compatible-filenames into master
This commit is contained in:
commit
51e2319781
1 changed files with 1 additions and 1 deletions
|
@ -46,7 +46,7 @@ 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']
|
||||||
date = datetime.datetime.now().replace(microsecond=0).isoformat()
|
date = datetime.datetime.now().replace(microsecond=0).isoformat()
|
||||||
fn = '{}_{}.json'.format('_'.join(name.lower().split()), date)
|
fn = '{}_{}.json'.format('_'.join(name.lower().split()), date.replace(':',''))
|
||||||
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