Browse Source

fixed bug due to change in User() signature

master
toyg 11 years ago
parent
commit
432214c6b6
  1. 4
      twistscraper.py

4
twistscraper.py

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

Loading…
Cancel
Save