From b0e162e820c5f734d43e82a333c6c96189af4bbe Mon Sep 17 00:00:00 2001 From: marco Date: Thu, 27 Jun 2019 20:26:57 +0200 Subject: [PATCH] ops --- platformcode/updater.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/platformcode/updater.py b/platformcode/updater.py index 399dcebf..f3a76ee6 100644 --- a/platformcode/updater.py +++ b/platformcode/updater.py @@ -138,6 +138,7 @@ def calcCurrHash(): treeHash = githash.tree_hash(addonDir).hexdigest() logger.info('tree hash: ' + treeHash) commits = loadCommits() + lastCommitSha = commits[0]['sha'] page = 1 while commits and page <= maxPage: found = False @@ -159,7 +160,7 @@ def calcCurrHash(): updateFromZip() # se ha scaricato lo zip si trova di sicuro all'ultimo commit localCommitFile = open(addonDir + trackingFile, 'w') - localCommitFile.write(commits[0]['sha']) + localCommitFile.write(lastCommitSha) localCommitFile.close()