Commit 1decdba6 authored by Cody Zacharias's avatar Cody Zacharias Committed by GitHub

Temporary fix for repeating first set

parent dca64e53
...@@ -9,6 +9,7 @@ import sys ...@@ -9,6 +9,7 @@ import sys
class Search: class Search:
def __init__(self, config): def __init__(self, config):
self.init = -1 self.init = -1
self.initial = -1
self.feed = [-1] self.feed = [-1]
self.count = 0 self.count = 0
self.config = config self.config = config
...@@ -50,9 +51,12 @@ class Search: ...@@ -50,9 +51,12 @@ class Search:
async def tweets(self): async def tweets(self):
await self.Feed() await self.Feed()
for tweet in self.feed: if self.initial != -1: # Temporary fix
self.count += 1 for tweet in self.feed:
await output.Tweets(tweet, self.config, self.conn) self.count += 1
await output.Tweets(tweet, self.config, self.conn)
else:
self.initial = 0
async def main(self): async def main(self):
if self.config.User_id is not None: if self.config.User_id is not None:
......
Markdown is supported
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