diff options
Diffstat (limited to 'src/server')
-rw-r--r-- | src/server/ApiManagers/UtilManager.ts | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/src/server/ApiManagers/UtilManager.ts b/src/server/ApiManagers/UtilManager.ts index e590a5b85..4cb57a4e7 100644 --- a/src/server/ApiManagers/UtilManager.ts +++ b/src/server/ApiManagers/UtilManager.ts @@ -1,7 +1,6 @@ import ApiManager, { Registration } from "./ApiManager"; import { Method } from "../RouteManager"; import { exec } from 'child_process'; -import { command_line } from "../ActionUtilities"; import RouteSubscriber from "../RouteSubscriber"; import { red } from "colors"; import executeImport from "../../scraping/buxton/final/BuxtonImporter"; @@ -40,25 +39,6 @@ export default class UtilManager extends ApiManager { } }); - // register({ - // method: Method.GET, - // subscription: "/buxton", - // secureHandler: async ({ res }) => { - // const cwd = './src/scraping/buxton'; - - // const onResolved = (stdout: string) => { console.log(stdout); res.redirect("/"); }; - // const onRejected = (err: any) => { console.error(err.message); res.send(err); }; - // const tryPython3 = (reason: any) => { - // console.log("Initial scraper failed for the following reason:"); - // console.log(red(reason.Error)); - // console.log("Falling back to python3..."); - // return command_line('python3 scraper.py', cwd).then(onResolved, onRejected); - // }; - - // return command_line('python scraper.py', cwd).then(onResolved, tryPython3); - // }, - // }); - register({ method: Method.GET, subscription: "/buxton", |