Most efficient method to count (yet)

This commit is contained in:
akamhy 2020-05-08 09:47:13 +05:30 committed by GitHub
parent e9d010c793
commit 42ac399362
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -140,4 +140,4 @@ def total_archives(url, UA=default_UA):
except HTTPError as e:
handle_HTTPError(e)
return (len(json.loads(response.read())))
return str(response.read()).count(",") # Most efficient method to count (yet)