def add(): req = request.get_json() category = req['category'] url = req['url'] print(category, url) save(category, url) return {'Status':'Ok'}
def add(): req = request.get_json() category = req['category'] url = req['url'] save(category, url) return { 'status': 'ok' }
def add_command(category: str, url: str): print('Dodaje nowy adres url') save(category, url)
def add(category: str, url: str): print('I added new URL') save(category, url)