Browse Source

Fix inconsistent use of tabs in indentation

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

+ 5 - 5
lcmlog-server

@@ -241,14 +241,14 @@ def method_post(kind, user_name, date, tags, log):
 # Generate .data file
 def method_update():
 	with contextlib.suppress(FileNotFoundError):
-		os.remove(DIR + "/data/.data")
+	    os.remove(DIR + "/data/.data")
 	file_list = os.listdir(DIR + "/data/")
 	open(DIR + "/data/.data", "x").close()
 	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)
+            newname = log_hash(name)
+            if not log_check(name):
+                os.rename(DIR + "/data/" + name, DIR + "/data/" + newname)
+            log_add(newname)
 	logger.info("UPDATE successful: added " + str(len(file_list)) + " files")