from PyQt5 import QtCore, QtGui, QtWidgets
from PyQt5.QtCore import *
from PyQt5.QtGui import *
from PyQt5.QtWidgets import *
from PyQt5.QtWebKit import *
from PyQt5.QtWebKitWidgets import *
from PyQt5.QtWebEngine import *
from PyQt5.QtWebEngineWidgets import *
from PyQt5.QtNetwork import *
from PyQt5.QtCore import QUrl
from PyQt5.QtWebEngineWidgets import QWebEngineView
from PyQt5.QtWidgets import QApplication
def get_infected_and_survived(self, id):
for row in self.cursor.execute(f'SELECT infected, survived FROM stats WHERE user_id={id}'):
return row
sql_lighter.get_infected_and_survived(982543922)
arr = sql_lighter.get_infect_and_survived(id) #здесь будет id
def get_infect_and_survived(self, id):
return self.cursor.execute(f'SELECT infected, survived FROM stats WHERE user_id={id}')