<gh_stars>0
import pymongo


def get_database():
    CONNECTION_STRING = "mongodb+srv://nikolastas:nikolastas2019@marketapp.5vzy4.mongodb.net/MarketApp?retryWrites=true&w=majority"

    client = pymongo.MongoClient(CONNECTION_STRING)

    return client


client = get_database()
db = client.MarketApp

collection_name = db["users"]

users = [
    {
        "username": "nikolastas",
        "group": "ABCDEFGHIJ",
        "email": "<EMAIL>",
        "password": <PASSWORD>",
    },
    {
        "username": "natalie",
        "group": "ABCDEFGHIJ",
        "email": "<EMAIL>",
        "password": <PASSWORD>",
    },
    {
        "username": "argyro",
        "group": "ABCDEFGHIJ",
        "email": "<EMAIL> ",
        "password": <PASSWORD>",
    },
    {
        "username": "nikolas",
        "group": "ABCDEFGHID",
        "email": "<EMAIL>",
        "password": <PASSWORD>",
    },
]

for user in users:
    collection_name.insert_one(user)

import pymongo


def get_database():
    CONNECTION_STRING = "mongodb+srv://nikolastas:nikolastas2019@marketapp.5vzy4.mongodb.net/MarketApp?retryWrites=true&w=majority"

    client = pymongo.MongoClient(CONNECTION_STRING)

    return client


client = get_database()
db = client.MarketApp

collection_name = db["users"]

users = [
    {
        "username": "nikolastas",
        "group": "ABCDEFGHIJ",
        "email": "<EMAIL>",
        "password": <PASSWORD>",
    },
    {
        "username": "natalie",
        "group": "ABCDEFGHIJ",
        "email": "<EMAIL>",
        "password": <PASSWORD>",
    },
    {
        "username": "argyro",
        "group": "ABCDEFGHIJ",
        "email": "<EMAIL> ",
        "password": <PASSWORD>",
    },
    {
        "username": "nikolas",
        "group": "ABCDEFGHID",
        "email": "<EMAIL>",
        "password": <PASSWORD>",
    },
]

for user in users:
    collection_name.insert_one(user)