fossasia / open-event-server

Consider using identity comparison with singleton PTC-W0068
Bug risk
Major
1 occurrence in this check
Comparison to singleton None should be expr is None
 79        )
 80        max = (
 81            db.session.query(func.sum(Ticket.quantity.label('sum')))
 82            .filter(Ticket.event_id == obj_id, Ticket.deleted_at == None) 83            .scalar()
 84        )
 85        result = {