Skip to content

Commit

Permalink
fix(service): Better paths
Browse files Browse the repository at this point in the history
  • Loading branch information
devsjc committed Nov 11, 2024
1 parent a30564c commit 7bc387f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/nwp_consumer/internal/services/archiver_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ def archive(self, year: int, month: int) -> ResultE[pathlib.Path]:
monitor.join()
notify_result = self.nr().notify(
message=entities.StoreCreatedNotification(
filename=store.path.name,
filename=pathlib.Path(store.path).name,
size_mb=store.size_kb // 1024,
performance=entities.PerformanceMetadata(
duration_seconds=monitor.get_runtime(),
Expand Down
2 changes: 1 addition & 1 deletion src/nwp_consumer/internal/services/consumer_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ def consume(self, it: dt.datetime | None = None) -> ResultE[pathlib.Path]:
monitor.join()
notify_result = self.nr().notify(
message=entities.StoreCreatedNotification(
filename=store.path.name,
filename=pathlib.Path(store.path).name,
size_mb=store.size_kb // 1024,
performance=entities.PerformanceMetadata(
duration_seconds=monitor.get_runtime(),
Expand Down

0 comments on commit 7bc387f

Please sign in to comment.