Skip to content
This repository was archived by the owner on May 17, 2024. It is now read-only.

Commit d10bf39

Browse files
dlawinnolar
andauthored
improve version check
Co-authored-by: Sergey Vasilyev <[email protected]>
1 parent 7d29542 commit d10bf39

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

data_diff/dbt_parser.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ def get_datadiff_variables(self) -> dict:
8989
def get_models(self, dbt_selection: Optional[str] = None):
9090
dbt_version = parse_version(self.dbt_version)
9191
if dbt_selection:
92-
if dbt_version.major == 1 and dbt_version.minor >= 5:
92+
if (dbt_version.major, dbt_version.minor) >= (1, 5):
9393
if self.dbt_runner:
9494
return self.get_dbt_selection_models(dbt_selection)
9595
# edge case if running data-diff from a separate env than dbt (likely local development)

0 commit comments

Comments
 (0)