Skip to content

Commit 1236de2

Browse files
Data directory name got duplicated when processing (#492)
1 parent 3742e0e commit 1236de2

File tree

2 files changed

+3
-7
lines changed

2 files changed

+3
-7
lines changed

src/murfey/client/__init__.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -319,8 +319,7 @@ def run():
319319
software_versions=machine_data.get("software_versions", {}),
320320
# sources=[Path(args.source)],
321321
# watchers=source_watchers,
322-
default_destination=args.destination
323-
or f"{machine_data.get('rsync_module') or 'data'}/{datetime.now().year}",
322+
default_destination=args.destination or str(datetime.now().year),
324323
demo=args.demo,
325324
processing_only_mode=server_routing_prefix_found,
326325
)

src/murfey/client/tui/screens.py

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -92,10 +92,7 @@ def determine_default_destination(
9292
elif machine_data.get("data_directories"):
9393
for data_dir in machine_data["data_directories"]:
9494
if source.resolve() == Path(data_dir):
95-
_default = (
96-
destination
97-
+ f"{machine_data.get('rsync_module') or 'data'}/{visit}"
98-
)
95+
_default = f"{destination}/{visit}"
9996
break
10097
else:
10198
try:
@@ -132,7 +129,7 @@ def determine_default_destination(
132129
else:
133130
_default = ""
134131
else:
135-
_default = destination + f"/{visit}"
132+
_default = f"{destination}/{visit}"
136133
return (
137134
_default + f"/{extra_directory}"
138135
if not _default.endswith("/")

0 commit comments

Comments
 (0)