oops. str.is_digit() -> str.isdigit()

This commit is contained in:
codl 2019-04-15 14:19:45 +02:00
pare ad96297a06
commit 62a47f4e92
No se encontró ninguna clave conocida en la base de datos para esta firma
ID de clave GPG: 6CD7C8891ED1233A

Veure arxiu

@ -2279,7 +2279,7 @@ class Mastodon:
next_params['_pagination_method'] = method
next_params['_pagination_endpoint'] = endpoint
max_id = matchgroups.group(1)
if max_id.is_digit():
if max_id.isdigit():
next_params['max_id'] = int(max_id)
else:
next_params['max_id'] = max_id
@ -2297,7 +2297,7 @@ class Mastodon:
prev_params['_pagination_method'] = method
prev_params['_pagination_endpoint'] = endpoint
since_id = matchgroups.group(1)
if since_id.is_digit():
if since_id.isdigit():
prev_params['since_id'] = int(since_id)
else:
prev_params['since_id'] = since_id