Rescraping upcoming scenes. Fixed language and scene deep scraping for Dorcel scraper.

This commit is contained in:
DebaucheryLibrarian
2021-06-02 03:27:32 +02:00
parent 42791c528e
commit c979173422
15 changed files with 105 additions and 15 deletions

View File

@@ -430,6 +430,10 @@ function init(context, selector, window) {
const element = selector ? context.querySelector(selector) : context;
if (!element) {
return null;
}
const legacyContextFuncs = Object.entries(legacyFuncs) // dynamically attach methods with context
.reduce((acc, [key, func]) => ({
...acc,

13
src/utils/update.js Normal file
View File

@@ -0,0 +1,13 @@
'use strict';
const knex = require('../knex');
async function init() {
const result = await knex.raw('SELECT * FROM json_to_recordset(:ids) AS x(id int)', {
ids: JSON.stringify([{ id: 1, foo: 'bar' }, { id: 2 }, { id: 3 }]),
});
console.log(result);
}
init();