|
|
@ -215,7 +215,7 @@ class TwisterScraper: |
|
|
|
if len(self.db.users) == 0: |
|
|
|
if len(self.db.users) == 0: |
|
|
|
# first run |
|
|
|
# first run |
|
|
|
for u in usernames: |
|
|
|
for u in usernames: |
|
|
|
blankUser = User(self.locService) |
|
|
|
blankUser = User() |
|
|
|
blankUser.username = u |
|
|
|
blankUser.username = u |
|
|
|
blankUser.updateTime = datetime.datetime.now() - self.CACHE_MAX_DURATION |
|
|
|
blankUser.updateTime = datetime.datetime.now() - self.CACHE_MAX_DURATION |
|
|
|
self.saveDb() |
|
|
|
self.saveDb() |
|
|
@ -282,7 +282,7 @@ class TwisterScraper: |
|
|
|
return all_posts[index:] |
|
|
|
return all_posts[index:] |
|
|
|
|
|
|
|
|
|
|
|
def _fetch_user_details(self, username): |
|
|
|
def _fetch_user_details(self, username): |
|
|
|
user = User(self.locService) |
|
|
|
user = User() |
|
|
|
user.username = username |
|
|
|
user.username = username |
|
|
|
|
|
|
|
|
|
|
|
avatarData = self.twister.dhtget(username, "avatar", "s") |
|
|
|
avatarData = self.twister.dhtget(username, "avatar", "s") |
|
|
|