Как исправить Unresolved reference?
код:
time_techno = mas_techno['items'][0]['date']
while True:
def get_posts(owner_id, count, offset):
connect = sqlite3.connect('users.db')
cursor = connect.cursor()
cursor.execute(f'SELECT id FROM login_id')
ids = cursor.fetchall()
for user_id2 in ids:
cursor.execute(f'SELECT techno FROM login_id WHERE id = {user_id2}')
techno2 = cursor.fetchone()
a = techno2[0]
if a == 'ON':
number = 0
mas_techno1 = vk_api.wall.get(owner_id=-210998761, v=5.131, count=1, offset=number)
time_techno1 = mas_techno1['items'][0]['date']
time_techno2 = time_techno1
while time_techno1 != time_techno: #тут ошибка
number = number + 1
mas_techno1 = vk_api.wall.get(owner_id=-210998761, v=5.131, count=1, offset=number)
time_techno1 = mas_techno1['items'][0]['date']
score = score + 1
time_techno = time_techno2
в таком виде код выдаёт ошибку: Unresolved reference 'time_techno' как это иправить?