Created
August 25, 2014 12:13
-
-
Save dsociative/ffad3fbe6d5bf283331e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class UserEnergyUpdate(BaseCommand): | |
params = 'uid', | |
requires = 'user', | |
@getter | |
def session(self): | |
return RSession() | |
@getter | |
def user(self, session): | |
return self.root.users.get(self.p['uid'], session) | |
@getter | |
def friend(self, user, session): | |
return self.root.users.get(user.friend.get(), session) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment