-
-
Notifications
You must be signed in to change notification settings - Fork 199
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
Feature analytics #31
Conversation
print("Report saved as " + filename) | ||
|
||
def load_sessions(self): | ||
path = self.username + "/sessions.json" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should provide an API for fetching the path for the session. The way it is right now makes it difficult to refactor.
Perhaps we can improve this. This kind of information should be fetched from the core.
return None | ||
|
||
def plot_followers_growth(self, sessions, pdf, username, period): | ||
followers_count = [int(session["profile"]["followers"]) for session in sessions] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same here. If we make session to be a class with all attributes, it improves maintainability of the code.
session.profile.followers
instead. Can you please create a task to improve this? We can merge it like this for now..
Yeah; this was basically just a copy/paste from the original PR. We can improve it - I just wanted to get it in since we’ve had the PR open for over a week and “it works”. 😄 Will add to project board. |
* No one is maintaining these - removing (#33) - These likely need re-written from scratch anyway - removing resources we don't use like patreon or the insomniac logo * Feature analytics (#31) * increment version * fixing bug with interact argument * ignoring all .pdf files * Adding tool to generate PDF reports with statistics using matplotlib * blackening Co-authored-by: narkopolo <[email protected]> Co-authored-by: narkopolo <[email protected]>
* No one is maintaining these - removing (#33) - These likely need re-written from scratch anyway - removing resources we don't use like patreon or the insomniac logo * Feature analytics (#31) * increment version * fixing bug with interact argument * ignoring all .pdf files * Adding tool to generate PDF reports with statistics using matplotlib * blackening Co-authored-by: narkopolo <[email protected]> * Adding missing dependency (#37) * No one is maintaining these - removing - These likely need re-written from scratch anyway - removing resources we don't use like patreon or the insomniac logo * adding matplotlib dependency Co-authored-by: narkopolo <[email protected]>
* No one is maintaining these - removing - These likely need re-written from scratch anyway - removing resources we don't use like patreon or the insomniac logo * No one is maintaining these - removing (#33) - These likely need re-written from scratch anyway - removing resources we don't use like patreon or the insomniac logo * Feature analytics (#31) * increment version * fixing bug with interact argument * ignoring all .pdf files * Adding tool to generate PDF reports with statistics using matplotlib * blackening Co-authored-by: narkopolo <[email protected]> * Adding missing dependency (#37) * No one is maintaining these - removing - These likely need re-written from scratch anyway - removing resources we don't use like patreon or the insomniac logo * adding matplotlib dependency * Use python logging module (#36) * Use python logging module - add log.py: used to configure python logging module There are two log handlers: one colored for the console and one with raw data for the crash report. This way we will be able to make the console be less cluttered while still have debug information when a crash happens. * Change plugin loading log level to INFO * Remove unused log constants (#41) * Remove pipenv because they can't figure out how to support python version ranges pypa/pipenv#1050 (#44) * No one is maintaining these - removing - These likely need re-written from scratch anyway - removing resources we don't use like patreon or the insomniac logo * removing pipenv * removing extra res folder - updating version Co-authored-by: narkopolo <[email protected]> Co-authored-by: Arthur Silva <[email protected]>
replaces #19 since the rebase completely screwed it up.
"Adding tool to generate PDF reports with statistics using matplotlib"