Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug?] UpdateLiveStats returns stats for all time, not up time. #4119

Closed
RedViper9 opened this issue Aug 16, 2016 · 2 comments
Closed

[Bug?] UpdateLiveStats returns stats for all time, not up time. #4119

RedViper9 opened this issue Aug 16, 2016 · 2 comments
Labels

Comments

@RedViper9
Copy link
Contributor

RedViper9 commented Aug 16, 2016

Expect:
UpdateLiveStats gives UpTime/Stardust/XP/etc. for the duration that the bot is run (i.e. UpTime).

Actual:
screenshot_2
Bot seems to return stats based on the account totals.
(As much as I'd like to be getting 4x10^6 xp/hr)

Config:
http://pastebin.com/HkpcPUc6

Output:
N/A (see screenshot above).

To Reproduce:
Run with linked config.

Other Info:
OS: Linux Mint 18
Branch: Dev
Git Commit: e68c2e8
Python Version: Python 2.7.12

@MasterCATZ
Copy link

personally I would like both

total run time and session uptime

@BriceSD
Copy link
Contributor

BriceSD commented Aug 16, 2016

As yaborije said on Slack, #4088 is the reason of this bug. Checking for None and not 0.

self.xp['latest'] = playerdata.get('experience', 0)
                        if self.xp['start'] is None: self.xp['start'] = self.xp['latest']

@MasterCATZ We can’t have total as it is. We know for how long you ran the bot this session, but not the sum of every sessions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants