We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
The current code (lines 52-54) sets the new maximum capacity to reading.wh_generated:
reading.wh_generated
max_capacity = self.redis.hget(key, SiteStats.MAX_CAPACITY) if not max_capacity or reading.current_capacity > float(max_capacity): self.redis.hset(key, SiteStats.MAX_CAPACITY, reading.wh_generated)
Instead, line 54 should set it to reading.current_capacity:
reading.current_capacity
self.redis.hset(key, SiteStats.MAX_CAPACITY, reading.current_capacity)
The text was updated successfully, but these errors were encountered:
Successfully merging a pull request may close this issue.
The current code (lines 52-54) sets the new maximum capacity to
reading.wh_generated
:Instead, line 54 should set it to
reading.current_capacity
:The text was updated successfully, but these errors were encountered: