def license(ID):
try:
lock.acquire(True)
sql.execute(f"SELECT LIC FROM users WHERE ID = '{ID}'")
rez = sql.fetchone()
if rez == None:
return 0#Нет ЛИЦ
elif rez == 1:
print('da')
return 1#Есть ЛИЦ
else:
return 0#Нет ЛИЦ
finally:
lock.release()