mirror of
https://github.com/PhoenixTwoFive/karaoqueue.git
synced 2025-05-19 11:01:47 +02:00
Fix types
This commit is contained in:
parent
adfd120636
commit
fc78bdc4fe
@ -1,9 +1,8 @@
|
|||||||
# -*- coding: utf_8 -*-
|
# -*- coding: utf_8 -*-
|
||||||
|
|
||||||
from types import NoneType
|
from email.mime import base
|
||||||
from MySQLdb import Connection
|
from MySQLdb import Connection
|
||||||
from sqlalchemy import create_engine
|
from sqlalchemy import create_engine, engine
|
||||||
import sqlite3
|
|
||||||
import mariadb
|
import mariadb
|
||||||
import pandas
|
import pandas
|
||||||
from io import StringIO
|
from io import StringIO
|
||||||
@ -16,7 +15,7 @@ done_table = "done_songs"
|
|||||||
connection = None
|
connection = None
|
||||||
|
|
||||||
|
|
||||||
def open_db() -> Connection:
|
def open_db() -> engine.base.Connection:
|
||||||
global connection
|
global connection
|
||||||
if (not connection):
|
if (not connection):
|
||||||
engine = create_engine(
|
engine = create_engine(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user