@property
    def drop_points_by_state(self):
        ret = {}
        for state in Report.states:
            ret[state] = 0
        for dp in DropPoint.query.all():
            if not dp.removed:
                s = dp.get_last_state()
                ret[s] = ret[s] + 1 if ret in s else 1
        return ret
dataset/ETHPy150Open der-michik/c3bottles/view/statistics.py/Statistics.drop_points_by_state/swapped operands of `in`