Skip to content

Commit

Permalink
Add time to export filename (CTFd#1949)
Browse files Browse the repository at this point in the history
* Add time to export filename
  • Loading branch information
nella17 authored Jul 17, 2021
1 parent 327d280 commit 551efe2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion export.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
shutil.copyfileobj(backup, target)
else:
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)

with open(full_name, "wb") as target:
Expand Down

0 comments on commit 551efe2

Please sign in to comment.