cur.execute('SELECT * FROM tags_db WHERE Path=?', (path, ))
if cur.fetchone():
cur.execute('UPDATE tags_db SET Song_Title=?, Album_Title=?, Song_Artist=?, Album_Artist=?, Year_of_Publishing=?, Track_Number=?, Length=?, Bitrate=? WHERE Path=?', (song_title, album_title, song_artist, album_artist, year_of_publishing, track_number, length, bitrate, path))
else:
cur.execute('INSERT INTO tags_db VALUES(?, ?, ?, ?, ?, ?, ?, ?, ?)', song_tags)
a = 'Petr'
b = 'Alex'
c = 'Max'
print(a, b, c, sep= ',')
import json
with open("data_file.json", "r") as read_file:
data = json.load(read_file)
if event.to_me:
request = event.text
if request == 'привет':
write_message()
from selenium.common.exceptions import NoSuchElementException
while True:
try:
webdriver.find_element_by_xpath(xpath)
except NoSuchElementException:
return True
break
from vk_api.keyboard import VkKeyboard, VkKeyboardColor
keyboard = VkKeyboard(one_time=False)
keyboard.add_button('нижняя левая кнопка', color=VkKeyboardColor.PRIMARY)
keyboard.add_button('Нижняя правая', color=VkKeyboardColor.SECONDARY)
keyboard.add_line()
keyboard.add_button('верхняя левая кнопка', color=VkKeyboardColor.NEGATIVE)
keyboard.add_button('верхняя правая кнопка', color=VkKeyboardColor.POSITIVE)