astronomer / astronomer-airflow-version-check

Plugin to check if new version of Astronomer Certified Airflow is available
Apache License 2.0
1 stars 2 forks source link

Fix disabling update_check_interval checks #21

Closed kaxil closed 3 years ago

kaxil commented 3 years ago

Because self.check_interval was a timedelta object, check with 0 resulted in False.

In [1]: from datetime import timedelta

In [2]: timedelta(seconds=0)
Out[2]: datetime.timedelta(0)

In [3]: timedelta(seconds=0) == 0
Out[3]: False