Fix using wrong index when looking for comments in the downloaded file.

Signed-off-by: DL6ER <dl6er@dl6er.de>
This commit is contained in:
DL6ER
2019-08-09 19:45:17 +02:00
parent 0a78b27698
commit 1ca652bdec
+1 -1
View File
@@ -29,7 +29,7 @@ for line in manuf:
line = line.strip()
# Skip comments and empty lines
if line[1] == "#" or line == "":
if line == "" or line[0] == "#":
continue
# Remove quotation marks as these might interfere with later INSERT / UPDATE commands