def get_photo_metas(self, query, db_helper): photo_files = self.get_photo_meta_files(query, db_helper) photos = [] photoBuilder = PhotoBuilder(); for filepath in photo_files: items = photoBuilder.get_photo_from_file(filepath) photos.extend(items) return photos
def get_photo_with_tag(self, metaFilePath): photoBuilder = PhotoBuilder(); files = getFileOfType(metaFilePath,'txt') for i in range(0, len(files)): files[i] = metaFilePath + '/' + files[i] photos = [] for filepath in files: items = photoBuilder.get_photo_from_file(filepath) photos.extend(items) return photos