Closed 1326570 closed 6 years ago
Same issue here
same issue too...
https://github.com/instagrambot/instabot/pull/556 should fix it ;)
Need to add the use_cache part to the bot.py file as well. Seems to work well otherwise
Thanks for using it. I've reopened the issue. Could you be a bit more specific about where you added the use_cache?
In bot/bot.py
Change:
def get_user_info(self, user_id): return get_user_info(self, user_id)
To:
def get_user_info(self, user_id, use_cache): return get_user_info(self, user_id, use_cache)
Good point! I've just changed ithttps://github.com/instagrambot/instabot/commit/b7404c645b31c4424dbdf8beb4035d25307a484a
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Before submitting an issue, make sure you have:
Purpose of your issue?
Code:
Error/Debug Log:
Describe your issue
In the ultimate file we save the usere stats every hour, however bot.save_user_stats() does not save updated stats, but the ones when the function was first run. This saves the same value over and over. Probably because in get_user_info() there is a check to see if user stats were already asked for.
--> add check to see if user stats are requested from own user ID, or remove check altogether and always overwrite when function is called.