Browse Source

Fix bug caused by missing lines

Paolo Galli 4 years ago
parent
commit
e4abc7d7a4
1 changed files with 2 additions and 1 deletions
  1. 2 1
      lcmlog-server

+ 2 - 1
lcmlog-server

@@ -244,7 +244,8 @@ def method_update():
 		os.remove(DIR + "/data/.data")
 	file_list = os.listdir(DIR + "/data/")
 	open(DIR + "/data/.data", "x").close()
-	for  = log_hash(name)
+	for name in file_list:
+                newname = log_hash(name)
 		if not log_check(name):
 			os.rename(DIR + "/data/" + name, DIR + "/data/" + newname)
 		log_add(newname)