Skip to content

Commit

Permalink
minor fix
Browse files Browse the repository at this point in the history
  • Loading branch information
outdoorbits committed Jul 6, 2024
1 parent ded4e91 commit f3e46d7
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 6 deletions.
3 changes: 0 additions & 3 deletions scripts/backup.py
Original file line number Diff line number Diff line change
Expand Up @@ -286,9 +286,6 @@ def get_syncCommand(self, TransferMode, SubPathAtSource, dry_run=False):

syncCommand += [SourcePath, TargetPath, '--config', self.__RCLONE_CONFIG_FILE, '-vv', '--min-size=1B', '--ignore-case'] + Excludes

if dry_run:
syncCommand += ['--dry-run']

return(syncCommand)

def calculate_files_to_sync(self, singleSubPathsAtSource=None):
Expand Down
4 changes: 1 addition & 3 deletions scripts/lib_backup.py
Original file line number Diff line number Diff line change
Expand Up @@ -163,9 +163,7 @@ def __display_progress(self):
(self.FilesToProcess == self.CountProgress)
): # print changed progress

if self.TransferRate in ['','0.00kB/s']:
self.TransferRate = ''
else:
if len(self.TransferRate) > 0 and self.TransferRate[0] != ',':
self.TransferRate = f", {self.TransferRate}"

DisplayLine3 = f"{self.CountProgress} " + self.__lan.l('box_backup_of') + f" {self.FilesToProcess}{self.TransferRate}"
Expand Down
1 change: 1 addition & 0 deletions scripts/lib_debug.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ def __init__(self):
self.debugbasetime=int(datetime.now().timestamp())

def d(self, debugstring):
debugstring = debugstring.strip()
Message = f"{int(datetime.now().timestamp()) - self.debugbasetime}\t{__name__}\t{debugstring}"
print(Message,file=sys.stderr)

Expand Down

0 comments on commit f3e46d7

Please sign in to comment.