Introduce pair_to_filename()

This commit is contained in:
hroff-1902
2020-01-04 05:07:51 +03:00
committed by Matthias
parent f82c4346b6
commit bc6a10353b
2 changed files with 13 additions and 5 deletions

View File

@@ -92,6 +92,12 @@ def file_load_json(file):
return pairdata
def pair_to_filename(pair: str) -> str:
for ch in ['/', ' ', '.']:
pair = pair.replace(ch, '_')
return pair
def format_ms_time(date: int) -> str:
"""
convert MS date to readable format.