From 0d477a26a4a8df64949052ecbf99bb461a3b82b5 Mon Sep 17 00:00:00 2001 From: Kaya Celebi Date: Fri, 26 May 2023 02:43:28 -0400 Subject: [PATCH] Typo fixes --- README.md | 2 +- src/google_flight_analysis/scrape.py | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 78a0317..5c3a6ca 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ [![kcelebi](https://circleci.com/gh/celebi-pkg/flight-analysis.svg?style=svg)](https://circleci.com/gh/celebi-pkg/flight-analysis) [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT) [![Live on PyPI](https://img.shields.io/badge/PyPI-1.1.0-brightgreen)](https://pypi.org/project/google-flight-analysis/) -[![TestPyPI](https://img.shields.io/badge/PyPI-1.1.1--alpha.3-blue)](https://test.pypi.org/project/google-flight-analysis/1.1.1a3/) +[![TestPyPI](https://img.shields.io/badge/PyPI-1.1.1--alpha.4-blue)](https://test.pypi.org/project/google-flight-analysis/1.1.1a4/) # Flight Analysis diff --git a/src/google_flight_analysis/scrape.py b/src/google_flight_analysis/scrape.py index 1ce14f6..8edc4e8 100644 --- a/src/google_flight_analysis/scrape.py +++ b/src/google_flight_analysis/scrape.py @@ -128,7 +128,7 @@ def _set_properties(self, *args): self._origin, self._dest, self._date = args - assert len(self._origin) == len(self._dest) == len(self._date), "Issue with array lengths, talk to dev" + #assert len(self._origin) == len(self._dest) == len(self._date), "Issue with array lengths, talk to dev" self._url = self._make_url() self._type = 'one-way' @@ -141,7 +141,7 @@ def _set_properties(self, *args): self._origin, self._dest, self._date = args[:2] + (args[2:],) - assert len(self._origin) == len(self._dest) == len(self._date), "Issue with array lengths, talk to dev" + #assert len(self._origin) == len(self._dest) == len(self._date), "Issue with array lengths, talk to dev" self._url = self._make_url() self._type = 'round-trip' @@ -152,7 +152,7 @@ def _set_properties(self, *args): for i in range(0, len(args), 3): assert len(args[i]) == 3 and type(args[i]) == str, "Issue with arg {}, see docs".format(i) assert len(args[i + 1]) == 3 and type(args[i+1]) == str, "Issue with arg {}, see docs".format(i+1) - assert len(args[i + 2] == 10 and type(args[i + 2])) == str, "Issue with arg {}, see docs".format(i+2) + assert len(args[i + 2]) == 10 and type(args[i + 2]) == str, "Issue with arg {}, see docs".format(i+2) self._origin += [args[i]] self._dest += [args[i + 1]]