rename find_tracks_inside_path_regex -> get_dir_t_count

This commit is contained in:
geoffrey45
2022-07-07 08:40:11 +03:00
parent c8e4529e3c
commit e01edbce30
3 changed files with 6 additions and 7 deletions
+3 -4
View File
@@ -2,10 +2,9 @@
This file contains the AllSongs class for interacting with track documents in MongoDB.
"""
import re
import pymongo
from app.db.mongodb import convert_many
from app.db.mongodb import convert_one
from app.db.mongodb import MongoTracks
from app.db.mongodb import MongoTracks, convert_many, convert_one
from bson import ObjectId
@@ -100,7 +99,7 @@ class Tracks(MongoTracks):
songs = self.collection.find({"folder": query})
return convert_many(songs)
def find_tracks_inside_path_regex(self, path: str) -> int:
def get_dir_t_count(self, path: str) -> int:
"""
Returns a list of all the tracks matching the path in the query params.
"""