Merge pull request #347 from Schrolli91/fix_mysql_plugin

fix mysql plugin
This commit is contained in:
Bastian Schroll 2018-01-03 13:48:26 +01:00 committed by GitHub
commit 7fe28aa765
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

View file

@ -8,6 +8,7 @@
##### Deprecated
##### Removed
##### Fixed
- Fehler beim auslesen der netIdent_RIC im MySQL Plugin [#347](https://github.com/Schrolli91/BOSWatch/pull/347)
##### Security

View file

@ -111,7 +111,7 @@ def run(typ,freq,data):
elif typ == "POC":
if isSignal(data["ric"]):
if globalVars.config.getint("POC","netIdent_histry"):
if globalVars.config.getint("POC","netIdent_history"):
cursor.execute("INSERT INTO "+globalVars.config.get("MySQL","tableSIG")+" (time,ric) VALUES (NOW(), '"+data["ric"]+"');")
else:
cursor.execute("UPDATE "+globalVars.config.get("MySQL","tableSIG")+" SET time = NOW() WHERE ric = '"+data["ric"]+"';")