Add Account method to update AccountActivityBySR.

This commit is contained in:
Jason Harvey
2012-08-12 18:58:57 -07:00
parent 2fe83ed70e
commit 7e22528221

View File

@@ -589,6 +589,10 @@ class Account(Thing):
def flair_enabled_in_sr(self, sr_id):
return getattr(self, 'flair_%d_enabled' % sr_id, True)
def update_sr_activity(self, sr):
if not self._spam:
AccountActivityBySR.touch(self, sr)
class FakeAccount(Account):
_nodb = True
pref_no_profanity = True