def getArticles(self, themes_array, limits): mongoService=MongoService() array=[] mark = common.getMark() for theme in themes_array: listArticles=mongoService.getMainArticles(theme["theme_id"], limits, mark) array.extend(listArticles) return array
def getArticles(self, themes_array, limits): mongoService=MongoService() array=[] mark = common.getMark() for theme in themes_array: listArticles=mongoService.getMainArticles(theme["theme_id"], limits, mark) array.extend(listArticles) return array