mirror of
https://github.com/FreifunkFranken/fff-monitoring.git
synced 2024-06-17 04:44:25 +02:00
11 lines
183 B
Python
11 lines
183 B
Python
#!/usr/bin/python3
|
|
|
|
from pymongo import MongoClient
|
|
client = MongoClient()
|
|
|
|
db = client.freifunk
|
|
|
|
# create db indexes
|
|
db.users.create_index("email")
|
|
db.users.create_index("nickname")
|