Module Expr Str ImportFrom alias ImportFrom alias identifier ImportFrom alias alias ClassDef bases AttributeLoad NameLoad attr body Expr Str Assign NameStore Str Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword Call AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call AttributeLoad NameLoad attr Str keyword Str keyword Str Assign NameStore Call AttributeLoad NameLoad attr Str keyword Str keyword Str Assign NameStore Call AttributeLoad NameLoad attr Str keyword Str keyword Str Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Return BinOpMod Str AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return SubscriptLoad AttributeLoad NameLoad attr Index AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return SubscriptLoad AttributeLoad NameLoad attr Index AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore ListComp AttributeLoad NameLoad attr comprehension NameStore AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr NameLoad CompareNotEq AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Return AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore ListComp AttributeLoad NameLoad attr comprehension NameStore AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr NameLoad CompareNotEq AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Return AttributeLoad NameLoad attr decorator_list decorator_list
N/A N/A flask_reddit db flask_reddit.users constants USER flask_reddit.threads.models thread_upvotes comment_upvotes User N/A N/A db Model N/A N/A N/A __tablename__ users_user N/A id N/A N/A db Column N/A db Integer primary_key True N/A username N/A N/A db Column N/A N/A db String N/A USER MAX_USERNAME unique True N/A email N/A N/A db Column N/A N/A db String N/A USER MAX_EMAIL unique True N/A password N/A N/A db Column N/A N/A db String N/A USER MAX_PASSW N/A created_on N/A N/A db Column N/A db DateTime default N/A N/A N/A db func now N/A threads N/A N/A db relationship Thread backref user lazy dynamic N/A comments N/A N/A db relationship Comment backref user lazy dynamic N/A subreddits N/A N/A db relationship Subreddit backref user lazy dynamic N/A status N/A N/A db Column N/A db SmallInteger default N/A USER ALIVE N/A role N/A N/A db Column N/A db SmallInteger default N/A USER USER __init__ N/A N/A self username email password N/A N/A N/A N/A self username username N/A N/A self email email N/A N/A self password password N/A __repr__ N/A N/A self N/A N/A N/A N/A <User %r> N/A self username N/A get_status N/A N/A self N/A N/A N/A 
        returns string form of status, 0 = 'dead', 1 = 'alive'
         N/A N/A N/A USER STATUS N/A N/A self status N/A get_role N/A N/A self N/A N/A N/A 
        analogous to above but for roles
         N/A N/A N/A USER ROLE N/A N/A self role N/A get_thread_karma N/A N/A self N/A N/A N/A 
        fetch the number of votes this user has had on his/her threads

        1.) Get id's of all threads by this user

        2.) See how many of those threads also were upvoted but not by
        the person him/her self.
         N/A thread_ids N/A N/A t id N/A t N/A self threads N/A select N/A N/A thread_upvotes select N/A N/A db and_ N/A N/A N/A N/A thread_upvotes c thread_id in_ thread_ids N/A N/A N/A thread_upvotes c user_id N/A self id N/A rs N/A N/A N/A db engine execute select N/A N/A rs rowcount N/A get_comment_karma N/A N/A self N/A N/A N/A 
        fetch the number of votes this user has had on his/her comments
         N/A comment_ids N/A N/A c id N/A c N/A self comments N/A select N/A N/A comment_upvotes select N/A N/A db and_ N/A N/A N/A N/A comment_upvotes c comment_id in_ comment_ids N/A N/A N/A comment_upvotes c user_id N/A self id N/A rs N/A N/A N/A db engine execute select N/A N/A rs rowcount N/A N/A