Fix types

This commit is contained in:
Phillip Kühne 2022-07-15 15:09:48 +02:00
parent adfd120636
commit fc78bdc4fe
Signed by: phillip
GPG Key ID: E4C1C4D2F90902AA

View File

@ -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(