Skip to content

Commit b818264

Browse files
committed
fix case sensitivity
1 parent 92cf654 commit b818264

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

kaggle_json.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ def unformat_bytes(string):
113113
# New Kaggle Api >=1.7
114114
try:
115115
user, dataset_id = dsn.split("/")
116-
dataset = next((d for d in usernames[user] if d.ref == dsn))
116+
dataset = next((d for d in usernames[user] if d.ref.lower() == dsn.lower()))
117117
downloads.append(int(dataset.download_count))
118118
views.append(int(dataset.view_count))
119119
if USE_TRUE_SIZE:

0 commit comments

Comments
 (0)