summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPiotr Dobrowolski <admin@tastycode.pl>2013-09-03 16:26:12 +0200
committerPiotr Dobrowolski <admin@tastycode.pl>2013-09-03 16:26:12 +0200
commit253388c26b9e1b09d22497321cd3b839be29d8bb (patch)
treedfdcfafea6a7e7bbb1b7b5632f2dbdd2cc5d8024
parent3a8c5412faf92b6654e69cf77215e62ee64f1d3e (diff)
downloadwww-main-253388c26b9e1b09d22497321cd3b839be29d8bb.tar.gz
www-main-253388c26b9e1b09d22497321cd3b839be29d8bb.tar.bz2
www-main-253388c26b9e1b09d22497321cd3b839be29d8bb.tar.xz
www-main-253388c26b9e1b09d22497321cd3b839be29d8bb.zip
More descriptive spaceapi status line
-rw-r--r--main.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/main.py b/main.py
index 72ee6b2..be58794 100644
--- a/main.py
+++ b/main.py
@@ -117,7 +117,8 @@ def spaceapi():
},
"state": {
"open": space_open,
- "message": "open for public" if open_day else "members only",
+ "message": ("open for public" if open_day else "members only") +
+ (", %d multicellular bodies present" % people_now_present['value'] if people_now_present['value'] else ""),
# @TODO: customized *space* logo
"icon": {
"open": "https://static.hackerspace.pl/img/status-open-small.png",