Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -90,7 +90,9 @@ def get_auth_url(mastodon):
|
|
| 90 |
:param mastodon: A admin masterdon instance.
|
| 91 |
:return: The target URL.
|
| 92 |
'''
|
| 93 |
-
return mastodon.auth_request_url(client_id="ivory-secret.txt", scopes=["write:blocks", "write:mutes"]
|
|
|
|
|
|
|
| 94 |
|
| 95 |
def login_from_code(code):
|
| 96 |
'''
|
|
@@ -223,7 +225,7 @@ def block_users(client, threshold, dataset):
|
|
| 223 |
:return: The number of blocked users.
|
| 224 |
'''
|
| 225 |
num_users_blocked = 0
|
| 226 |
-
|
| 227 |
print("Testing dropdown value {}".format(dropdown.value))
|
| 228 |
|
| 229 |
for filename in os.listdir("users"):
|
|
|
|
| 90 |
:param mastodon: A admin masterdon instance.
|
| 91 |
:return: The target URL.
|
| 92 |
'''
|
| 93 |
+
return mastodon.auth_request_url(client_id="ivory-secret.txt", scopes=["write:blocks", "write:mutes"],
|
| 94 |
+
redirect_uris="https://user1342-ivory.hf.space/")
|
| 95 |
+
|
| 96 |
|
| 97 |
def login_from_code(code):
|
| 98 |
'''
|
|
|
|
| 225 |
:return: The number of blocked users.
|
| 226 |
'''
|
| 227 |
num_users_blocked = 0
|
| 228 |
+
|
| 229 |
print("Testing dropdown value {}".format(dropdown.value))
|
| 230 |
|
| 231 |
for filename in os.listdir("users"):
|