Using the "schema" of:
- Insert row into entity table ()
- Insert row into revision table ()
- Insert row into <entity>_data table (...data)
- Insert row into <entity>_header table (bbid)
| { | |
| aliasEditor: {}, | |
| buttonBar: { | |
| aliasEditorVisible: false, | |
| disambiguationVisible: false, | |
| identifierEditorVisible: false | |
| }, | |
| editionSection: { | |
| depth: 21, | |
| pages: 336, |
| Area.forge() | |
| .where({type: 1}) | |
| .fetchAll() | |
| .then((collection) => collection.toJSON()) | |
| .map(search.indexArea) |
| [Fri Dec 09 2016 00:14:27 GMT+0000 (GMT)] ERROR { Error | |
| at NotFoundError.Error (native) | |
| at NotFoundError.SiteError (/home/ben/Code/bookbrainz/site/src/server/helpers/error.js:27:23) | |
| at new NotFoundError (/home/ben/Code/bookbrainz/site/src/server/helpers/error.js:156:123) | |
| at /home/ben/Code/bookbrainz/site/src/server/app.js:128:7 | |
| at Layer.handle [as handle_request] (/home/ben/Code/bookbrainz/site/node_modules/express/lib/router/layer.js:95:5) | |
| at trim_prefix (/home/ben/Code/bookbrainz/site/node_modules/express/lib/router/index.js:312:13) | |
| at /home/ben/Code/bookbrainz/site/node_modules/express/lib/router/index.js:280:7 | |
| at Function.process_params (/home/ben/Code/bookbrainz/site/node_modules/express/lib/router/index.js:330:12) | |
| at next (/home/ben/Code/bookbrainz/site/node_modules/express/lib/router/index.js:271:10) |
| import pylast | |
| API_KEY = '<ADD KEY HERE>' | |
| API_SECRET = '<ADD SECRET HERE>' | |
| username = "BenOckmore" | |
| password_hash = pylast.md5("<ADD PASS HERE>") | |
| network = pylast.LastFMNetwork(api_key = API_KEY) |
| def client_authentication_required(self, request, *args, **kwargs): | |
| return False | |
| mkdir calibre_build && cd calibre_build && wget https://github.com/stasszczesniak/CalibreBookBrainzPlugin/archive/master.zip && unzip master.zip && cd CalibreBookBrainzPlugin-master && zip -r calibre_test.zip ./ && mv calibre_test.zip ../../ && cd ../../ && rm -Rf calibre_build |
Using the "schema" of:
| Verifying that +benockmore is my blockchain ID. https://onename.com/benockmore |
| var knex = require('knex')({ | |
| client: 'postgresql', | |
| connection: { | |
| host : '127.0.0.1', | |
| user : 'username', | |
| password : 'password', | |
| database : 'database' | |
| } | |
| }); |