]> projects.mako.cc - iron-blogger/blobdiff - render.py
AUTOPUNT
[iron-blogger] / render.py
index f226adb906448fa945efda8ea05b7bd169f22073..cacd90da6360c8fe2b799eb21f4f81b05d6ce826 100755 (executable)
--- a/render.py
+++ b/render.py
@@ -33,7 +33,7 @@ def get_debts():
         debts.append((user, val))
     return debts
 
-def render_template(path, week=None):
+def render_template(path, week=None, **kwargs):
     with open('out/report.yml') as r:
         report = yaml.safe_load(r)
 
@@ -93,7 +93,7 @@ def render_template(path, week=None):
         week=week, week_start=week_start,week_end=week_end,
         good=good, lame=lame, skip=skip, userlist=userlist,
         pool=get_balance('Pool'), paid=get_balance('Pool:Paid'),
-        debts=debts)
+        debts=debts, **kwargs)
 
 if __name__ == '__main__':
     if len(sys.argv) < 2:

Benjamin Mako Hill || Want to submit a patch?