Add docstring
This commit is contained in:
parent
6d7f291b93
commit
eb011cd99b
|
@ -908,6 +908,12 @@ class EventsStore(SQLBaseStore):
|
||||||
|
|
||||||
@defer.inlineCallbacks
|
@defer.inlineCallbacks
|
||||||
def count_daily_messages(self):
|
def count_daily_messages(self):
|
||||||
|
"""
|
||||||
|
Returns an estimate of the number of messages sent in the last day.
|
||||||
|
|
||||||
|
If it has been significantly less or more than one day since the last
|
||||||
|
call to this function, it will return None.
|
||||||
|
"""
|
||||||
def _count_messages(txn):
|
def _count_messages(txn):
|
||||||
now = self.hs.get_clock().time()
|
now = self.hs.get_clock().time()
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue