From 03c018500f21c476fca4d31745aa582daac7b8ba Mon Sep 17 00:00:00 2001 From: Christine Dodrill Date: Sun, 9 Aug 2015 14:41:19 -0700 Subject: [PATCH] all the types --- client/ponyapi.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/client/ponyapi.py b/client/ponyapi.py index c96e5a1..543b845 100644 --- a/client/ponyapi.py +++ b/client/ponyapi.py @@ -28,7 +28,7 @@ Available methods: API_ENDPOINT = "http://ponyapi.apps.xeserv.us" -## _base_get :: Text -> IO (Either (Maybe Episode) [Episode]) +## _base_get :: Text -> Maybe [Text] -> IO (Either (Maybe Episode) [Episode]) def _base_get(endpoint, *fragments): def doer(*args): r = None @@ -67,7 +67,7 @@ get_season = _base_get("", "season") # get_episode :: Int -> Int -> IO Episode get_episode = _base_get("", "season", "episode") -# search :: String -> IO [Episode] +# search :: Text -> IO [Episode] def search(query): params = {"q": query} r = requests.get(API_ENDPOINT + "/search", params=params)