INSERT INTO result(name) VALUES (ilya)
- cur.execute(f'INSERT INTO result(name) VALUES ({data["Name"]})')
- db.commit()
- cur.execute(f'INSERT INTO result(name) VALUES({data['School_class']})')
+ cur.execute('INSERT INTO result(name, class) VALUES (?, ?)', (data["Name"], data['School_class']))
document: InputFile | str
File to send. Pass a file_id as String to send a file that exists on the Telegram servers (recommended), pass an HTTP URL as a String for Telegram to get a file from the Internet, or upload a new one using multipart/form-data. More information on Sending Files »
CREATE TABLE IF NOT EXISTS STAFF_DATE(
id INTEGER PRIMARY KEY FIO,
DATE timestamp NOT NULL,
staff_id INTEGER,
FOREIGN KEY(staff_id) REFERENCES STAFF(id)
);
Ну и, соответственно, записывать в это поле id сотрудника, для которого задаётся дата.stations (id, name);
events (card, event, station_id, sum, timestamp)