Skip to content

Commit

Permalink
Merge pull request #163 from linuxdaemon/gonzobot+fix-db-lock-errors
Browse files Browse the repository at this point in the history
Fix DB lock issues
  • Loading branch information
edwardslabs authored Jan 5, 2018
2 parents be1990b + 3c92dcb commit 931caf7
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions plugins/duckhunt.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
from time import time

from sqlalchemy import Table, Column, String, Integer, PrimaryKeyConstraint, desc, Boolean
from sqlalchemy.exc import DatabaseError
from sqlalchemy.sql import select

from cloudbot import hook
Expand Down Expand Up @@ -108,7 +107,7 @@ def save_status(db):
if not res.rowcount:
db.execute(status_table.insert().values(network=network, chan=chan, active=active, duck_kick=duck_kick))

db.commit()
db.commit()


@hook.event([EventType.message, EventType.action], singlethread=True)
Expand Down

0 comments on commit 931caf7

Please sign in to comment.