Coming soon - Get a detailed view of why an account is flagged as spam!
view details

This post has been de-listed

It is no longer included in search results and normal feeds (front page, hot posts, subreddit posts, etc). It remains visible only via the author's post history.

2
[Python] New Stats API/Class
Author Summary
illuzian is in PYTHON
Post Body

Gist

Hi Guys,

This is a rewrite using a combination of model methods(not shown) and a new standard input and output format for a massive hard to manage godish class. This particular class is intended to be reused in a few places too.

Hoping someone could point out any obvious mistakes or issues within my code/provide insight into better ways to do things.

It's linted at 8.77 currently.

I intend to add more methods but I'm a little unhappy with the dict subclass methods but I wasn't really sure what else to do. I intend on maybe providing access to the values of the dict using getattr in the future to ease using the django template engine and some other things.

Everything isn't in yet but just wanted feedback as this is essentially the core of what remains.

for anyone interested kpi/stats = metrics for measuring performance of individual employees performance.

Author
Account Strength
100%
Account Age
14 years
Verified Email
Yes
Verified Flair
No
Total Karma
4,071
Link Karma
948
Comment Karma
3,123
Profile updated: 6 days ago
Posts updated: 8 months ago

Subreddit

Post Details

Location
We try to extract some basic information from the post title. This is not always successful or accurate, please use your best judgement and compare these values to the post title and body for confirmation.
Posted
9 years ago