Skip to content

Commit

Permalink
Update scraper.py
Browse files Browse the repository at this point in the history
  • Loading branch information
slow-mo committed Jan 31, 2022
1 parent 189cfcb commit 5465eb6
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion scraper.py
Expand Up @@ -374,5 +374,13 @@ def main():


if __name__ == "__main__":
scraperwiki.sql.execute('ALTER TABLE opere RENAME COLUMN autore TO autore_id')
#scraperwiki.sql.execute('ALTER TABLE opere RENAME COLUMN autore TO autore_id')
#main()
import sqlite3
connection = sqlite3.connect("data.sqlite")
cursor = connection.cursor()
renameTable = "ALTER TABLE opere RENAME COLUMN autore TO autore_id"

cursor.execute(renameTable)
connection.close()

0 comments on commit 5465eb6

Please sign in to comment.