mirror of
https://github.com/LukeHagar/pypistats.org.git
synced 2025-12-06 12:47:48 +00:00
disable api
This commit is contained in:
@@ -54,7 +54,7 @@ def api_downloads_recent(package):
|
|||||||
@blueprint.route("/packages/<package>/overall")
|
@blueprint.route("/packages/<package>/overall")
|
||||||
def api_downloads_overall(package):
|
def api_downloads_overall(package):
|
||||||
"""Get the overall download time series of a package."""
|
"""Get the overall download time series of a package."""
|
||||||
# abort(503)
|
abort(503)
|
||||||
package = package.replace(".", "-")
|
package = package.replace(".", "-")
|
||||||
mirrors = request.args.get("mirrors")
|
mirrors = request.args.get("mirrors")
|
||||||
if mirrors == "true":
|
if mirrors == "true":
|
||||||
@@ -107,7 +107,7 @@ def api_downloads_system(package):
|
|||||||
|
|
||||||
def generic_downloads(model, package, arg, name):
|
def generic_downloads(model, package, arg, name):
|
||||||
"""Generate a generic response."""
|
"""Generate a generic response."""
|
||||||
# abort(503)
|
abort(503)
|
||||||
package = package.replace(".", "-")
|
package = package.replace(".", "-")
|
||||||
category = request.args.get(arg)
|
category = request.args.get(arg)
|
||||||
if category is not None:
|
if category is not None:
|
||||||
|
|||||||
Reference in New Issue
Block a user