Week 17, Update 04

This commit is contained in:
Sidney PEPO (aka sysb1n) 2024-01-06 00:01:07 -03:00
parent 4c4b151533
commit 8c84560fbf
Signed by: sidneypepo
GPG Key ID: A188DCCE6CD96D52
1 changed files with 3 additions and 1 deletions

View File

@ -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 = ''