Permalink
Browse files

Small fixes

  • Loading branch information...
pferreir committed Apr 18, 2012
1 parent 64bd6fb commit 1d05db76e97dc2ceeadad91e792efe1679955c0a
Showing with 3 additions and 3 deletions.
  1. +1 −1 radiocrepe/storage/local.py
  2. +1 −1 radiocrepe/web/auth.py
  3. +1 −1 radiocrepe/web/queue.py
@@ -47,7 +47,7 @@ def new_records(self):
last_sent = self.last_sent or 0
for obj in self.db.query(self._songClass).\
filter(self._songClass.timestamp > last_sent):
- song = obj.dict()
+ song = obj.dict(private=True)
# no need for remote host to know this
del song['fpath']
yield song
View
@@ -29,7 +29,7 @@ def configure(self, config):
return self._facebook
def get_user_data(self):
- return self._facebook.get('/me?fields=id,name,picture')
+ return self._facebook.get('/me?fields=id,name,picture').data
class GitHubAuthenticator(OAuthAuthenticator):
View
@@ -81,7 +81,7 @@ def _notify_start(db, storage, registry):
@with_hub_db
def _notify_stop(db, storage, registry):
global playing
- broadcast('stop', song(storage, playing.uid), ts=playing.timestamp)
+ broadcast('stop', song(storage, playing.song_id), ts=playing.timestamp)
playing = None
return ''

0 comments on commit 1d05db7

Please sign in to comment.