Module ImportFrom alias ImportFrom alias ImportFrom alias ClassDef bases NameLoad body Expr Call NameLoad keyword Str Assign NameStore Call NameLoad Str Assign NameStore Call NameLoad Str FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Return Call AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad decorator_list NameLoad FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Return CompareIsNot Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad decorator_list NameLoad FunctionDef arguments args NameParam NameParam defaults body Assign NameStore AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr CompareEq AttributeLoad NameLoad attr NameLoad Return Call AttributeLoad NameLoad attr decorator_list NameLoad decorator_list
N/A elixir using_options elixir ManyToOne kansha.models Entity DataVote N/A Entity N/A N/A N/A using_options tablename vote N/A user N/A ManyToOne DataUser N/A card N/A ManyToOne DataCard get_vote N/A N/A cls card user N/A N/A N/A Return Vote instance which match with user and card

        In:
            - ``card`` -- DataCard instance
            - ``user`` -- DataUser instance
        Return:
            - DataVote instance
         N/A N/A N/A cls get_by user user card card N/A classmethod has_voted N/A N/A cls card user N/A N/A N/A Return if a user has voted for a given card

        In:
            - ``card`` -- DataCard instance
            - ``user`` -- DataUser instance
        Return:
            - True if a vote is found, False otherwise
         N/A N/A N/A N/A cls get_vote card user None N/A classmethod count_votes N/A N/A cls card N/A N/A N/A q N/A cls query N/A q N/A N/A q filter N/A N/A cls card card N/A N/A N/A q count N/A classmethod N/A