Skip to content

Commit

Permalink
Merge pull request #597 from DataRecce/feature/drc-1061-indexerror-li…
Browse files Browse the repository at this point in the history
…st-index-out-of-range

[Bug] Fix parsing target type on windows
  • Loading branch information
wcchang1115 authored Feb 5, 2025
2 parents e4c51ba + ca18178 commit e9e0a52
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion recce/adapter/dbt_adapter/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -810,7 +810,7 @@ def refresh(self, refresh_file_path: str = None):
if refresh_file_path is None:
return self.load_artifacts()

target_type = refresh_file_path.split('/')[-2]
target_type = os.path.basename(os.path.dirname(refresh_file_path))
if self.target_path and target_type == os.path.basename(self.target_path):
if refresh_file_path.endswith('manifest.json'):
self.curr_manifest = load_manifest(path=refresh_file_path)
Expand Down

0 comments on commit e9e0a52

Please sign in to comment.