diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 15fe6ee3..b7374d7c 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -38,7 +38,7 @@ jobs: uses: awalsh128/cache-apt-pkgs-action@latest if: runner.os == 'Linux' with: - packages: build-essential cmake postgresql-server-dev-14 libproj-dev libjson-c-dev libgsl-dev libgeos-dev + packages: build-essential cmake postgresql-server-dev-16 libproj-dev libjson-c-dev libgsl-dev libgeos-dev version: 1.0 - name: Update brew diff --git a/pymeos/collections/time/datespan.py b/pymeos/collections/time/datespan.py index 1639b6f9..5af0d47e 100644 --- a/pymeos/collections/time/datespan.py +++ b/pymeos/collections/time/datespan.py @@ -470,9 +470,7 @@ def distance(self, other: TimeDate) -> timedelta: elif isinstance(other, DateSet): return self.distance(other.to_spanset()) elif isinstance(other, DateSpan): - return timedelta( - days=distance_datespanset_datespan(self._inner, other._inner) - ) + return timedelta(days=distance_datespan_datespan(self._inner, other._inner)) elif isinstance(other, DateSpanSet): return timedelta( days=distance_datespanset_datespan(self._inner, other._inner)