Commit 3a9d82d2 authored by angella's avatar angella
Browse files

Temporarily set item_count to 5

parent d0d87cc2
Showing with 2 additions and 4 deletions
+2 -4
......@@ -86,9 +86,7 @@ class TwitterPlugin(PluginFlow):
"""
# This applies to avoid limit errors if dev account is limited.
# Remove if not applicable anymore
max_amount = int(
input("How many items do you want import?\nPress enter to skip: ")
)
max_amount = 5
# Call importer entry point
self.run(max_amount)
......@@ -109,7 +107,7 @@ class TwitterPlugin(PluginFlow):
creds = self.twitter_client.get_oauth_url(
tokens["CONSUMER_KEY"], tokens["CONSUMER_SECRET"]
)
oauth_url, self.auth = creds["oauth_url"], creds["auth"]
oauth_url, self.auth = creds["auth_url"], creds["auth"]
for i in range(NUM_LOGIN_TRIES):
account = self.ask_user_for_accounts(SERVICE_NAME, "oauth-view", oauth_url)
result = self.twitter_client.get_oauth_token(self.auth, account.code)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment