Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def get_files_id(self):
- base = sqlite3.connect('base.db')
- cursor = base.cursor()
- files_id = cursor.execute('select file_id from files_id where id=?', (self.id,)).fetchall()
- for i, file_id in enumerate(files_id):
- files_id[i] = file_id[0]
- self.files_id = files_id
- base.close()
Add Comment
Please, Sign In to add comment