def get(self, username): deckbox_crawler = DeckboxCrawler(username) user_profile = deckbox_crawler.getUserProfile() user_sets = deckbox_crawler.getUserSets() return { **user_profile, "sets": user_sets }
def get(self, username): deckbox_crawler = DeckboxCrawler("/users/" + username) user_profile = deckbox_crawler.getUserProfile() user_sets = deckbox_crawler.getUserSets() return jsonify( user_profile, sets = user_sets, )