forked from Jonathan/Peradventure
added DB reinit script
This commit is contained in:
parent
066ce2aaaa
commit
01a5e768ca
@ -25,6 +25,7 @@ local map = {
|
|||||||
return "w"
|
return "w"
|
||||||
end
|
end
|
||||||
end,
|
end,
|
||||||
|
-- Map Populate / check if map exists
|
||||||
populate = function(self, map)
|
populate = function(self, map)
|
||||||
for h=1,10 do
|
for h=1,10 do
|
||||||
for i=1,10 do
|
for i=1,10 do
|
||||||
@ -44,6 +45,8 @@ local map = {
|
|||||||
else
|
else
|
||||||
return true
|
return true
|
||||||
end
|
end
|
||||||
|
end,
|
||||||
|
tileColor = function(self)
|
||||||
end
|
end
|
||||||
}
|
}
|
||||||
local tiles = {}
|
local tiles = {}
|
||||||
|
12
reset
Executable file
12
reset
Executable file
@ -0,0 +1,12 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
echo "This will reset ALL data! Are you sure you want to proceed? [y/N]"
|
||||||
|
read input
|
||||||
|
if [ "$input" == "y" ]
|
||||||
|
then
|
||||||
|
rm database.sqlite3
|
||||||
|
./setup_db
|
||||||
|
echo "Reset completed, have a nice day."
|
||||||
|
else
|
||||||
|
echo "Reset cancelled."
|
||||||
|
fi
|
@ -7,7 +7,7 @@
|
|||||||
</head>
|
</head>
|
||||||
|
|
||||||
<body>
|
<body>
|
||||||
<h1>Peradventure</h1>
|
<h1 style="text-align: center; margin-top: 3rem;">Peradventure</h1>
|
||||||
<% content_for("inner") %>
|
<% content_for("inner") %>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
Loading…
Reference in New Issue
Block a user