misc refactors and docstrings addition

This commit is contained in:
geoffrey45
2022-03-24 00:25:00 +03:00
parent bab2228a28
commit 67c3be7d40
25 changed files with 198 additions and 186 deletions
+5
View File
@@ -1,3 +1,8 @@
"""
This module creates and initiliazes a MongoDB instance. It also contains the
`convert_one()` and `conver_many()` methods for converting MongoDB cursors to Python dicts.
"""
import pymongo
import json
from bson import json_util
+5
View File
@@ -1,3 +1,8 @@
"""
This file contains the Album class for interacting with
album documents in MongoDB.
"""
from app import db
from bson import ObjectId
+4
View File
@@ -1,3 +1,7 @@
"""
This file contains the Artists class for interacting with artist documents in MongoDB.
"""
from app import db
from bson import ObjectId
+4
View File
@@ -1,3 +1,7 @@
"""
This file contains the Playlists class for interacting with the playlist documents in MongoDB.
"""
from app import db, models
from bson import ObjectId
+4
View File
@@ -1,3 +1,7 @@
"""
This file contains the TrackColors class for interacting with Track colors documents in MongoDB.
"""
from app import db
+4
View File
@@ -1,3 +1,7 @@
"""
This file contains the AllSongs class for interacting with track documents in MongoDB.
"""
from app import db
from bson import ObjectId