Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Net Ident History Flag in config #317

Merged
merged 8 commits into from
Dec 9, 2017
Merged

Net Ident History Flag in config #317

merged 8 commits into from
Dec 9, 2017

Conversation

Schrolli91
Copy link
Owner

@Schrolli91 Schrolli91 commented Oct 3, 2017

In Anlehnung an die Diskussion von #244

if globalVars.config.getint("POC","netIdent_histry"):
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"]+"';")
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

es gibt wohl die Möglichkeit das auf einen Befehl einzustampfen, ich weis allerdings gerade nicht wie...

Habe gerade REPLACE und INSERT INTO xxx ON DUPLICATE KEY UPDATE xxx im Kopf, aber kann nicht testen

@Schrolli91 Schrolli91 requested a review from flothi October 3, 2017 16:33
@Schrolli91 Schrolli91 self-assigned this Oct 4, 2017
@Schrolli91 Schrolli91 merged commit dbebc75 into develop Dec 9, 2017
@Schrolli91 Schrolli91 deleted the dev_netHistory branch December 9, 2017 14:56
@Schrolli91 Schrolli91 mentioned this pull request Jan 3, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant