Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
Update app.py
Browse files
app.py
CHANGED
|
@@ -73,10 +73,12 @@ async def add_exp_hub(ctx):
|
|
| 73 |
row_number = column_values.index(value) + 1
|
| 74 |
hf_user_name = value
|
| 75 |
# check likes
|
| 76 |
-
|
| 77 |
-
|
| 78 |
-
|
| 79 |
-
|
|
|
|
|
|
|
| 80 |
except Exception as e:
|
| 81 |
print(f"add_exp_hub Error: {e}")
|
| 82 |
|
|
|
|
| 73 |
row_number = column_values.index(value) + 1
|
| 74 |
hf_user_name = value
|
| 75 |
# check likes
|
| 76 |
+
try:
|
| 77 |
+
likes = list_liked_repos(f"{hf_user_name}")
|
| 78 |
+
hf_likes_new = likes.total
|
| 79 |
+
worksheet2.update(f'G{row_number}', f'{hf_likes_new}')
|
| 80 |
+
except Exception as e:
|
| 81 |
+
print(f"add_exp_hub Error: {e}")
|
| 82 |
except Exception as e:
|
| 83 |
print(f"add_exp_hub Error: {e}")
|
| 84 |
|