summaryrefslogtreecommitdiff
path: root/generate.lua
diff options
context:
space:
mode:
Diffstat (limited to 'generate.lua')
-rw-r--r--generate.lua5
1 files changed, 3 insertions, 2 deletions
diff --git a/generate.lua b/generate.lua
index 2c78d61..0486f7e 100644
--- a/generate.lua
+++ b/generate.lua
@@ -1,8 +1,9 @@
local activity = require "activity"
-local year = ...
+local args = {...}
+local year = tonumber(table.remove(args, 1))
print([[<!doctype html>]])
print([[<html lang="en">]])
print([[<meta charset="utf-8">]])
print([[<link rel="stylesheet" type="text/css" href="style.css">]])
print([[<title>Activity</title>]])
-print(activity.generate_table(year))
+print(activity.generate_table(year, args))