Skip to content

Commit

Permalink
Typo
Browse files Browse the repository at this point in the history
  • Loading branch information
kadero committed Oct 2, 2021
1 parent 51513d2 commit a571a94
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions core/dbt/parser/sources.py
Original file line number Diff line number Diff line change
Expand Up @@ -344,23 +344,23 @@ def get_unused_msg(
msg.append('')
return '\n'.join(msg)

def merge_time(base: Optional[Time], update: Optional[Time]) -> Optional[Time]:
def merge_freshness_time_thresholds(base: Optional[Time], update: Optional[Time]) -> Optional[Time]:
if base is None and update is None:
return None
elif base is None and update is not None:
return update
elif base is not None and update is None:
return base
else:
# base and update not none
# base and update are not none
return base.merged(update)

def merge_freshness(
base: Optional[FreshnessThreshold], update: Optional[FreshnessThreshold]
) -> Optional[FreshnessThreshold]:
if base is not None and update is not None:
merged_freshness = base.merged(update)
# merge one level deeper error and warn after threshold
# merge one level deeper the error_after and warn_after thresholds
merged_error_after = merge_time(base.error_after, update.error_after)
merged_warn_after = merge_time(base.warn_after, update.warn_after)

Expand Down

0 comments on commit a571a94

Please sign in to comment.