cleaned up imports
This commit is contained in:
parent
bc9f7c4c95
commit
57b2762e5c
|
@ -2,7 +2,8 @@
|
||||||
import os
|
import os
|
||||||
from media.monitor.log import Loggable
|
from media.monitor.log import Loggable
|
||||||
from media.monitor.exceptions import NoDirectoryInAirtime
|
from media.monitor.exceptions import NoDirectoryInAirtime
|
||||||
from os.path import normpath
|
from media.saas.thread import user
|
||||||
|
from os.path import normpath, join
|
||||||
import media.monitor.pure as mmp
|
import media.monitor.pure as mmp
|
||||||
|
|
||||||
class AirtimeDB(Loggable):
|
class AirtimeDB(Loggable):
|
||||||
|
@ -74,7 +75,7 @@ class AirtimeDB(Loggable):
|
||||||
def dir_id_get_files(self, dir_id, all_files=True):
|
def dir_id_get_files(self, dir_id, all_files=True):
|
||||||
""" Get all files in a directory with id dir_id """
|
""" Get all files in a directory with id dir_id """
|
||||||
base_dir = self.id_to_dir[ dir_id ]
|
base_dir = self.id_to_dir[ dir_id ]
|
||||||
return set(( os.path.join(base_dir,p) for p in
|
return set(( join(base_dir,p) for p in
|
||||||
self.apc.list_all_db_files( dir_id, all_files ) ))
|
self.apc.list_all_db_files( dir_id, all_files ) ))
|
||||||
|
|
||||||
def directory_get_files(self, directory, all_files=True):
|
def directory_get_files(self, directory, all_files=True):
|
||||||
|
|
Loading…
Reference in New Issue