From e2fd239e371fc405bc6fb00af8ea9edff05fb507 Mon Sep 17 00:00:00 2001 From: Christine Dodrill Date: Mon, 17 Aug 2015 14:36:41 -0700 Subject: [PATCH] Update Python API client --- client/python/ponyapi.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/client/python/ponyapi.py b/client/python/ponyapi.py index 724a93f..326f90b 100644 --- a/client/python/ponyapi.py +++ b/client/python/ponyapi.py @@ -66,6 +66,9 @@ all_episodes = _base_get("/all") # newest :: IO Episode newest = _base_get("/newest") +# last_aired :: IO Episode +last_aired = _base_get("/last_aired") + # random :: IO Episode random = _base_get("/random") @@ -85,9 +88,9 @@ def search(query): return r.json()["episodes"] -# last_aired :: IO Episode +# last_aired_old :: IO Episode # TODO: Does not know how to wrap around seasons, fix this -def last_aired(): +def last_aired_old(): new = newest() if new[u"air_date"] > int(time.time()):