inf cannot into spaceapi

home_site
q3k 2013-11-04 12:52:08 +01:00
parent 661555ac5f
commit 1922ac9432
1 changed files with 2 additions and 1 deletions

View File

@ -97,7 +97,8 @@ def spaceapi():
space_open = len(at_object['users']) > 0
people_now_present['value'] = len(at_object['users'])
people_now_present['names'] = list(user['login'] for user in at_object['users'])
if len(at_object['users']) > 0:
people_now_present['names'] = list(user['login'] for user in at_object['users'])
open_day = space_open and int(strftime("%w")) == app.config['OPEN_DAY_WEEKDAY'] \
and int(strftime("%H")) >= app.config['OPEN_DAY_BEGIN_HOUR']