Compare commits

..

No commits in common. "8e7616e49057e1d112c951a364b2bfe7f933a95f" and "7900084f161c36d9b9ca45a9e04fa2c25b7fa986" have entirely different histories.

4 changed files with 5 additions and 9 deletions

3
.gitmodules vendored
View File

@ -1,3 +0,0 @@
[submodule "heonian-content"]
path = heonian-content
url = git@ssh.succubi.services:lustlion/heonian-content.git

@ -1 +0,0 @@
Subproject commit 19de5190c0876edbeb307f09b540a2c4d111b783

View File

@ -21,9 +21,9 @@ end
function lesson(number) function lesson(number)
number = tonumber(number) number = tonumber(number)
local t = scandir(dir.."/content/lessons/") local t = scandir(dir.."/lessons/")
if t[number] then if t[number] then
dofile("content/lessons/"..t[number]) dofile("lessons/"..t[number])
else else
print("lesson not found") print("lesson not found")
end end

View File

@ -18,8 +18,8 @@ require "add_word"
require "edit_word" require "edit_word"
require "lessons" require "lessons"
data_get = "content/words.lua" data_get = "words.lua"
data_output = "content/words.lua" data_output = "words.lua"
words = dofile(data_get) words = dofile(data_get)
@ -123,7 +123,7 @@ Parameters:
else else
if arg[2] then lesson(arg[2]) if arg[2] then lesson(arg[2])
else else
print("specify a lesson",table.unpack(getFormattedLessonNames(dir.."/content/lessons/"))) print("specify a lesson",table.unpack(getFormattedLessonNames(dir.."/lessons/")))
end end
end end
return return