Skip to content

Commit 3344b5d

Browse files
committed
Add timestamp to export filename to prevent overwrites
1 parent f5d803d commit 3344b5d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

app.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -830,7 +830,7 @@ def _resolve_pr_url(url: str) -> "PRMetadata":
830830
def _write_export(result: "BranchComparison", pr_meta: "Optional[PRMetadata]" = None) -> str:
831831
"""Write a BranchComparison to a detailed .txt file in the CWD. Returns the file path."""
832832
now = datetime.now()
833-
date_str = now.strftime("%Y%m%d")
833+
date_str = now.strftime("%Y%m%d-%H%M%S")
834834
if pr_meta:
835835
owner_safe = pr_meta.owner.replace("/", "-")
836836
repo_safe = pr_meta.repo.replace("/", "-")

0 commit comments

Comments
 (0)