def way(self, ways):
        for id, tags, refs in ways:
            if len(tags) and len(refs) > 1 > args['max_nodes'] and refs[0] == refs[-1]:
                # circular ways only
                id = str(id)
                tags['OSM_ID'] = 'way/' + id
                self.db.put(id, json.dumps([refs, tags]))

                if not args['precache']:
                    self.put_refs(refs)
dataset/ETHPy150Open aaronlidman/openstreetPOIs/osmpois.py/Ways.way/swapped operands of `>`