Restyle Integrate topbar and refactor playlists page (#31)

This commit is contained in:
restyled-io[bot]
2022-04-14 11:39:26 +03:00
committed by GitHub
parent 85c59b4cba
commit a6e46dcde2
8 changed files with 66 additions and 35 deletions
+4 -4
View File
@@ -1,7 +1,6 @@
"""
This file contains the Artists class for interacting with artist documents in MongoDB.
"""
from app import db
from bson import ObjectId
@@ -19,9 +18,10 @@ class Artists(db.Mongo):
"""
Inserts an artist into the database.
"""
self.collection.update_one(
artist_obj, {"$set": artist_obj}, upsert=True
).upserted_id
self.collection.update_one(artist_obj, {
"$set": artist_obj
},
upsert=True).upserted_id
def get_all_artists(self) -> list:
"""