You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

10 lines
296 B

from _arango import ArangoDB
arango = ArangoDB()
initiatives = [i for i in arango.db.collection('eu_initiatives').all()]
ordered_by_headline = sorted(initiatives, key=lambda x: x['headline'])
s = set()
for i in ordered_by_headline:
print(i['headline'])
s.add(i['headline'])
print(len(s))