From f76e8f1a7cb6c72ca40fa4199f2836d32b17ba1c Mon Sep 17 00:00:00 2001 From: crflynn Date: Tue, 18 Dec 2018 09:25:42 -0500 Subject: [PATCH] restore api --- pypistats/views/api.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pypistats/views/api.py b/pypistats/views/api.py index 8b1e809..43833aa 100644 --- a/pypistats/views/api.py +++ b/pypistats/views/api.py @@ -54,7 +54,7 @@ def api_downloads_recent(package): @blueprint.route("/packages//overall") def api_downloads_overall(package): """Get the overall download time series of a package.""" - abort(503) + # abort(503) package = package.replace(".", "-").replace("_", "-") mirrors = request.args.get("mirrors") if mirrors == "true": @@ -107,7 +107,7 @@ def api_downloads_system(package): def generic_downloads(model, package, arg, name): """Generate a generic response.""" - abort(503) + # abort(503) package = package.replace(".", "-").replace("_", "-") category = request.args.get(arg) if category is not None: