User1342 commited on
Commit
66a6cf5
·
1 Parent(s): dc4f468

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -2
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"):