Changeset - 7264fcee6f30
[Not reviewed]
default
0 1 0
Dennis Fink - 8 years ago 2017-02-13 16:32:53
dennis.fink@c3l.lu
Fix clear_user_present
1 file changed with 1 insertions and 1 deletions:
0 comments (0 inline, 0 general)
spaceapi/utils.py
Show inline comments
 
@@ -127,13 +127,13 @@ class ActiveStatus(Singleton, dict):
 

	
 
            self['sensors']['people_now_present'][0] = people_now_present
 
        else:
 
            pass
 

	
 
    def clear_user_present(self):
 
        self['sensors']['people_now_presents'][0]['value'] = 0
 
        self['sensors']['people_now_present'][0]['value'] = 0
 
        if 'names' in self['sensors']['people_now_present'][0]:
 
            del self['sensors']['people_now_present'][0]['names']
 

	
 
    def send_tweet(self, value):
 
        tweet = random.choice(possible_open_tweets) if value else random.choice(possible_closed_tweets)
 
        try:
0 comments (0 inline, 0 general)