Skip to content

Commit

Permalink
Typo fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
kcelebi committed May 26, 2023
1 parent 0f7e526 commit 0d477a2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -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

Expand Down
6 changes: 3 additions & 3 deletions src/google_flight_analysis/scrape.py
Original file line number Diff line number Diff line change
Expand Up @@ -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'

Expand All @@ -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'

Expand All @@ -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]]
Expand Down

0 comments on commit 0d477a2

Please sign in to comment.