fixed mark time correctly in the name file of json
This commit is contained in:
parent
954dfa95a1
commit
b2c258b699
|
@ -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)
|
||||||
|
|
Reference in New Issue