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

View file

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