Week 17, Update 04
This commit is contained in:
parent
4c4b151533
commit
8c84560fbf
|
@ -267,7 +267,9 @@ def obter_programas():
|
|||
def obter_historico():
|
||||
historico = json.loads(browser_history.get_history().to_json())["history"]
|
||||
|
||||
if (len(historico) > 200):
|
||||
if (len(historico) < 1):
|
||||
return "Não há histórico disponível!"
|
||||
elif (len(historico) > 200):
|
||||
historico = historico[-200:]
|
||||
|
||||
retorno = ''
|
||||
|
|
Loading…
Reference in New Issue