please let the not be fucking horrible

This commit is contained in:
jane 2021-06-06 02:32:52 -04:00
parent 3e36e1dd21
commit b8affd203f
2 changed files with 3 additions and 1 deletions

View File

@ -59,6 +59,8 @@ app.get("/indexes/:project(\\w+)", (req, res) => {
}
});
app.use(express.urlencoded({ extended: false }));
function diff(current, checked) {
let lines_current = current.split('\n').map(l => l.trim()).filter(l => l != "");
let lines_checked = checked.split('\n').map(l => l.trim()).filter(l => l != "");

View File

@ -69,7 +69,7 @@ local function getAllFiles(program)
print("#DEBUG currentFiles " .. currentFiles)
local updateResult = http.post(updateUrl, currentFiles)
local updateResult = http.post(updateUrl, "content=" .. textutils.urlEncode(currentFiles))
if updateResult == nil then
print("error! getting updates for " .. program)
error()