Skip to content

Commit

Permalink
fix import
Browse files Browse the repository at this point in the history
  • Loading branch information
bmswens committed May 2, 2023
1 parent 04e4701 commit 96d9a71
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/db.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
from pubsub import pub

# custom
from api import mattermost
from api.mattermost import onMessage as mmOnMessage


def dict_factory(cursor, row):
Expand Down Expand Up @@ -135,7 +135,7 @@ def onMessage(packet, interface, db_path=None):
# mattermost integration
mattermost_url = os.getenv("MATTERMOST_WEBHOOK")
if mattermost_url:
mattermost.onMessage(packet, interface)
mmOnMessage(packet, interface)


def onPosition(packet, interface, db_path=None):
Expand Down

0 comments on commit 96d9a71

Please sign in to comment.