---
title: "Comment by Filip Niko on \"Streaming tweets using Twitter V2 API | Tweepy\" | Hashnode"
description: "Hi, how do you ensure that on_includes will run always after on_tweet so the self.new_tweet[&quot;tweet&quot;] will not be empty upon insertion into database?"
url: "https://hashnode.com/posts/streaming-tweets-using-twitter-v2-api-tweepy/62fc74574900bfdc627653ce/comment/6337802ee594fa4ba3b8f176"
---

[Discussion](https://hashnode.com/posts/streaming-tweets-using-twitter-v2-api-tweepy/62fc74574900bfdc627653ce)

Comment [Streaming tweets using Twitter V2 API | Tweepy](https://hashnode.com/posts/streaming-tweets-using-twitter-v2-api-tweepy/62fc74574900bfdc627653ce)

[Filip Niko](https://hashnode.com/@FilipNiko)

[Sep 30, 2022](https://hashnode.com/posts/streaming-tweets-using-twitter-v2-api-tweepy/62fc74574900bfdc627653ce/comment/6337802ee594fa4ba3b8f176)

Hi, how do you ensure that `on_includes` will run always after `on_tweet` so the `self.new_tweet["tweet"]` will not be empty upon insertion into database?

[Dipankar Medhi](https://hashnode.com/@dipankarmedhi)

[Oct 2, 2022](https://hashnode.com/posts/streaming-tweets-using-twitter-v2-api-tweepy/62fc74574900bfdc627653ce/comment/6337802ee594fa4ba3b8f176#reply-63391022e594fa4ba3b90ba4)

Hi Filip,

Yes, even I had the same doubt while working on this project. Later, after debugging the code, I got that the methods run sequentially, so on\_includes always run after on\_tweet. And for more control over the queries, you can put conditons on the methods to get your data accordingly.

Hope, I answerd your question.
