mirror of
https://github.com/aljazceru/CTFd.git
synced 2025-12-17 05:54:19 +01:00
@@ -19,7 +19,7 @@ with app.app_context():
|
|||||||
shutil.copyfileobj(backup, target)
|
shutil.copyfileobj(backup, target)
|
||||||
else:
|
else:
|
||||||
ctf_name = config.ctf_name()
|
ctf_name = config.ctf_name()
|
||||||
day = datetime.datetime.now().strftime("%Y-%m-%d")
|
day = datetime.datetime.now().strftime("%Y-%m-%d_%T")
|
||||||
full_name = "{}.{}.zip".format(ctf_name, day)
|
full_name = "{}.{}.zip".format(ctf_name, day)
|
||||||
|
|
||||||
with open(full_name, "wb") as target:
|
with open(full_name, "wb") as target:
|
||||||
|
|||||||
Reference in New Issue
Block a user