def insert_data(self, url, rep, obem, nick):
self.c.execute('''SELECT * FROM finance WHERE url''')
if url == '':
self.c.execute('''INSERT INTO finance(url, rep, obem, nick) VALUES (?, ?, ?, ?)''')
else:
self.c.execute('''UPDATE finance set url=?, rep=?, obem=?, nick=?''', (url, rep, obem, nick))
self.conn.commit()