@@ -98,6 +98,8 @@ def get_by_token(token):
         return dict(row) if row else None
 
 
+
+
 def get_or_create(musicbrainz_id):
     """Get user with a specified MusicBrainz ID, or create if there's no account.
 
import db
import uuid
import sqlalchemy


def create(musicbrainz_id):
    """Create a new user.

    Args:
        musicbrainz_id (str): MusicBrainz username of a user.

    Returns:
        ID of newly created user.
    """
    with db.engine.connect() as connection:
        result = connection.execute(sqlalchemy.text("""
            INSERT INTO "user" (musicbrainz_id, auth_token)
                 VALUES (:mb_id, :token)
              RETURNING id
        """), {
            "mb_id": musicbrainz_id,
            "token": str(uuid.uuid4()),
        })
        return result.fetchone()["id"]


def get(id):
    """Get user with a specified ID.

    Args:
        id (int): ID of a user.

    Returns:
        Dictionary with the following structure:
        {
            "id": <user id>,
            "created": <account creation time>,
            "musicbrainz_id": <MusicBrainz username>,
            "auth_token": <authentication token>,
        }
    """
    with db.engine.connect() as connection:
        result = connection.execute(sqlalchemy.text("""
            SELECT id, created, musicbrainz_id, auth_token
              FROM "user"
             WHERE id = :id
        """), {"id": id})
        row = result.fetchone()
        return dict(row) if row else None


def get_by_mb_id(musicbrainz_id):
    """Get user with a specified MusicBrainz ID.

    Args:
        musicbrainz_id (str): MusicBrainz username of a user.

    Returns:
        Dictionary with the following structure:
        {
            "id": <user id>,
            "created": <account creation time>,
            "musicbrainz_id": <MusicBrainz username>,
            "auth_token": <authentication token>,
        }
    """
    with db.engine.connect() as connection:
        result = connection.execute(sqlalchemy.text("""
            SELECT id, created, musicbrainz_id, auth_token
              FROM "user"
             WHERE LOWER(musicbrainz_id) = LOWER(:mb_id)
        """), {"mb_id": musicbrainz_id})
        row = result.fetchone()
        return dict(row) if row else None


def get_by_token(token):
    """Get user with a specified authentication token.

    Args:
        token (str): Authentication token associated with user's account.

    Returns:
        Dictionary with the following structure:
        {
            "id": <user id>,
            "created": <account creation time>,
            "musicbrainz_id": <MusicBrainz username>,
        }
    """
    with db.engine.connect() as connection:
        result = connection.execute(sqlalchemy.text("""
            SELECT id, created, musicbrainz_id
              FROM "user"
             WHERE auth_token = :auth_token
        """), {"auth_token": token})
        row = result.fetchone()
        return dict(row) if row else None


def get_or_create(musicbrainz_id):
    """Get user with a specified MusicBrainz ID, or create if there's no account.

    Args:
        musicbrainz_id (str): MusicBrainz username of a user.

    Returns:
        Dictionary with the following structure:
        {
            "id": <user id>,
            "created": <account creation time>,
            "musicbrainz_id": <MusicBrainz username>,
            "auth_token": <authentication token>,
        }
    """
    user = get_by_mb_id(musicbrainz_id)
    if not user:
        create(musicbrainz_id)
        user = get_by_mb_id(musicbrainz_id)
    return user

Be careful about adding things that are not needed. One way to check this is to use a linter, to check the layout of your code, though we don't enforce this at the moment. I often use `git add -p` to verify the diffs which I add, or at the very least always use `git diff` before `git add`, to see the changes that I'll make.