Skip to content

Commit

Permalink
Increased resolution of backup name
Browse files Browse the repository at this point in the history
Needed to avoid overwriting if run multiple times on same day.
  • Loading branch information
rgonzalezfluendo committed Nov 16, 2024
1 parent 7c750d8 commit 7b6ec9d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions guw/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
import shutil
import sys
import tempfile
from datetime import date
from datetime import datetime
from functools import cache

import colorlog
Expand Down Expand Up @@ -46,8 +46,8 @@ def __init__(self, config):
self.to_push = []

def _backup_name(self, name):
today = str(date.today())
backup_name = f"{name}-{today}"
now = datetime.now().strftime("%Y-%m-%d_%H-%M-%S")
backup_name = f"{name}-{now}"
return backup_name

def _get_upstream_feature(self):
Expand Down

0 comments on commit 7b6ec9d

Please sign in to comment.