Most efficient method to count (yet)
This commit is contained in:
1 parent
e9d010c793
commit
42ac399362
1 file changed
+1
-1
@@ -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)
|
||||
Reference in new issue
Block a user