Skip to content
This repository has been archived by the owner on Oct 25, 2019. It is now read-only.

Commit

Permalink
remove Midlothian, Virginia weather test; Improve duck_api readibility
Browse files Browse the repository at this point in the history
  • Loading branch information
paulwalko committed Feb 12, 2017
1 parent 71c5f90 commit c8f4da2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
3 changes: 2 additions & 1 deletion modules/search.py
Expand Up @@ -148,7 +148,8 @@ def duck(phenny, input):
query = input.group(2)
if not query: return phenny.reply('.ddg what?')
uri = duck_api(query)
if not uri: uri = duck_search(query)
if not uri:
uri = duck_search(query)
if uri:
phenny.reply(uri)
if not hasattr(phenny.bot, 'last_seen_uri'):
Expand Down
1 change: 0 additions & 1 deletion modules/test/test_weather.py
Expand Up @@ -28,7 +28,6 @@ def validate(actual_name, actual_lat, actual_lon):
('27959', check_places("Dare County", "North Carolina")),
('48067', check_places("Royal Oak", "Michigan")),
('23606', check_places("Newport News", "Virginia")),
('23113', check_places("Nodstown", "Munster")),
('27517', check_places("Chapel Hill", "North Carolina")),
('15213', check_places("Allegheny County", "Pennsylvania")),
('90210', check_places("Los Angeles County", "California")),
Expand Down

0 comments on commit c8f4da2

Please sign in to comment.