took me two whole (well almost) fucking WEEKS to notice this
This commit is contained in:
Minecon724 2023-11-16 16:21:33 +01:00
parent af912dadc9
commit b00b2c2d8f

View file

@ -54,13 +54,13 @@ def compare(all=False):
for i in [i[1] for i in local_tree if i in remote_tree and i[0] == 0]:
data = open(os.path.join(LOCAL_PATH, i), 'r').read()
data = apply_env(data).encode()
local_hash = sha1(data)
local_hash = sha1(data).digest()
data = open(os.path.join(REMOTE_PATH, i), 'r').read()
data = apply_env(data).encode()
remote_hash = sha1(data)
remote_hash = sha1(data).digest()
if all or local_hash == remote_hash:
if all or local_hash != remote_hash:
outdated += [(0, i)]
return {'create': remote_new, 'delete': local_new, 'sync': outdated}