Commit 49dd0f04 authored by Francesco Poldi's avatar Francesco Poldi

Compact resume

parent dc290687
......@@ -13,14 +13,11 @@ import logging as logme
class Twint:
def __init__(self, config):
logme.debug(__name__+':Twint:__init__')
if config.Resume is not None and config.TwitterSearch:
if config.Resume is not None and (config.TwitterSearch or config.Followers or config.Following):
logme.debug(__name__+':Twint:__init__:Resume')
self.init = f"{self.get_resume(config.Resume)}"
self.init = self.get_resume(config.Resume)
else:
self.init = -1
if config.Resume is not None and (config.Followers or config.Following):
self.init = self.get_resume(config.Resume)
self.feed = [-1]
self.count = 0
......
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