fixed mark time correctly in the name file of json

This commit is contained in:
Cayo Puigdefabregas 2020-10-29 12:10:12 +01:00
parent 954dfa95a1
commit b2c258b699
1 changed files with 1 additions and 1 deletions

View File

@ -32,7 +32,7 @@ def save_json(req_json, tmp_snapshots, user):
month = now.month month = now.month
day = now.day day = now.day
hour = now.hour hour = now.hour
minutes = now.min minutes = now.minute
name_file = f"{year}-{month}-{day}-{hour}-{minutes}_{user}_{uuid}.json" name_file = f"{year}-{month}-{day}-{hour}-{minutes}_{user}_{uuid}.json"
path_name = os.path.join(tmp_snapshots, name_file) path_name = os.path.join(tmp_snapshots, name_file)