Skip to content
GitLab
    • Explore Projects Groups Snippets
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • T twitter-v2
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 0
    • Issues 0
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 2
    • Merge requests 2
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Container Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • MemriMemri
  • plugins
  • twitter-v2
  • Merge requests
  • !11

update directly

  • Review changes

  • Download
  • Email patches
  • Plain diff
Merged Aziz Berkay Yesilyurt requested to merge aziz/optim into dev 2 years ago
  • Overview 0
  • Commits 1
  • Pipelines 1
  • Changes 1
Compare
  • dev (base)

and
  • latest version
    63cd6a0c
    1 commit, 2 years ago

1 file
+ 2
- 7

    Preferences

    File browser
    Compare changes
twitter_v2/plugin.py
+ 2
- 7
  • View file @ 63cd6a0c

  • Edit in single-file editor

  • Open in Web IDE


@@ -118,16 +118,11 @@ class TwitterPlugin(PluginBase):
def import_tweets(self):
# Half of the time is spent until now
self.update_progress(0.5)
self.set_progress(0.5)
for page in self.tweepy_producer.get_home_timeline():
for tweepy_tweet in page.tweets:
self.create_tweet_item(tweepy_tweet)
self.update_progress(1)
def update_progress(self, progress):
if self.pluginRun:
self.pluginRun.progress = progress
self.pod_queue.put(update_items=[self.pluginRun])
self.set_progress(1)
def is_external_id_in_pod(
self, item_type: Type[Union[Tweet, Account]], external_id: str
0 Assignees
None
Assign to
0 Reviewers
None
Request review from
Labels
0
None
0
None
    Assign labels
  • Manage project labels

Milestone
No milestone
None
None
Time tracking
No estimate or time spent
Lock merge request
Unlocked
1
1 participant
Aziz Berkay Yesilyurt
Reference: memri/plugins/twitter-v2!11
Source branch: aziz/optim

Menu

Explore Projects Groups Snippets