Permalink
Browse files

A few more fixes

  • Loading branch information...
1 parent 722e84c commit 4cd55690656cd86bb31924cc892a4395e283623d @spicyj spicyj committed Jul 9, 2012
Showing with 9 additions and 5 deletions.
  1. +5 −5 notify.py
  2. +1 −0 requirements.txt
  3. +3 −0 secrets.py.example
View
@@ -34,18 +34,18 @@ def get_version():
return data['version_id'].split('.', 2)[0]
-last_version = None
-
if __name__ == '__main__':
+ last_version = None
+
while True:
version = get_version()
if version is not None:
if last_version is not None and version != last_version:
- # 19528 is code for '1s and 0s'
hipchat_notify(
- 19528, ('App Engine (www.khanacademy.org) default version '
- 'changed to %s' % version))
+ secrets.hipchat_room_id,
+ ('App Engine (www.khanacademy.org) default version '
+ 'changed to %s' % version))
last_version = version
time.sleep(10)
View
@@ -1 +1,2 @@
+# Required by python-hipchat
configobj
View
@@ -0,0 +1,3 @@
+hipchat_token = 'shh_dont_tell_anyone'
+
+hipchat_room_id = 9001

0 comments on commit 4cd5569

Please sign in to comment.