def songs_connection(): '''this method connects to the songs collection and returns collection object.''' connection = dbo() connection.this_db( 'local' ) connection.this_collection( 'songs' ) return connection
def playlists_connection(): '''this method connects to the playlists collection and returns collection object.''' connection = dbo() connection.this_db( 'local' ) connection.this_collection( 'playlists' ) return connection