all the types

This commit is contained in:
Christine Dodrill 2015-08-09 14:41:19 -07:00
parent 307ebff3b3
commit 03c018500f
1 changed files with 2 additions and 2 deletions

View File

@ -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)