chore: publish 1.0.0+latest release
This commit is contained in:
21
release/convertmonitor.py
Executable file
21
release/convertmonitor.py
Executable file
@ -0,0 +1,21 @@
|
||||
#!/usr/bin/python3
|
||||
|
||||
og = open("original.sql", "r")
|
||||
new = open("ported.sql", "w")
|
||||
|
||||
for line in og:
|
||||
newline = line
|
||||
if line.startswith("INSERT INTO monitor VALUES"):
|
||||
newarr = line[27:-3].split(",")
|
||||
if len(newarr) == 77:
|
||||
kafka_producer_ssl_and_topic = ["0", "0"]
|
||||
arr = newarr[:66] + kafka_producer_ssl_and_topic + newarr[66:75] + ["'keyword'", "NULL", "NULL", "'2c'", "NULL", "0", "'{}'"]
|
||||
newline = "INSERT INTO monitor VALUES(" + ",".join(arr) + ");\n"
|
||||
else:
|
||||
newline = "--" + line
|
||||
else:
|
||||
pass
|
||||
new.writelines(newline)
|
||||
|
||||
og.close()
|
||||
new.close()
|
||||
Reference in New Issue
Block a user