1
0
mirror of https://github.com/balkian/bitter.git synced 2024-12-22 00:18:12 +00:00

Fix bug user ids

This commit is contained in:
J. Fernando Sánchez 2018-08-30 15:57:49 +02:00
parent 311b972b27
commit e6b08c4ffb
2 changed files with 3 additions and 2 deletions

View File

@ -1 +1 @@
0.9.1 0.9.2

View File

@ -514,7 +514,8 @@ def user_download_batch(wq, batch):
user_ids = [] user_ids = []
for elem in batch: for elem in batch:
try: try:
user_ids.append(int(elem)) int(elem)
user_ids.append(str(elem))
except ValueError: except ValueError:
screen_names.append(elem.lower()) screen_names.append(elem.lower())
print('Downloading: {} - {}'.format(user_ids, screen_names)) print('Downloading: {} - {}'.format(user_ids, screen_names))