synapse/storage/__init__.py
def count_daily_users(self):
        """
        Counts the number of users who used this homeserver in the last 24 hours.
        """
        def _count_users(txn):
            yesterday = int(self._clock.time_msec()) - (1000 * 60 * 60 * 24)

            sql = """
                SELECT COALESCE(count(*), 0) FROM (
                    SELECT user_id FROM user_ips
                    WHERE last_seen > ?
                    GROUP BY user_id
                ) u
            """

            txn.execute(sql, (yesterday,))
            count, = txn.fetchone()
            return count

        return self.runInteraction("count_users", _count_users)

        Counts the number of users who used this homeserver in the last 24 hours.
        
Counts the number of users who used this homeserver in the last 24 hours.
Counts the number of users who used this homeserver in the last 24 hours .
def count_daily_users(self):
        def _count_users(txn):
            yesterday = int(self._clock.time_msec()) - (1000 * 60 * 60 * 24)
            sql = """
                SELECT COALESCE(count(*), 0) FROM (
                    SELECT user_id FROM user_ips
                    WHERE last_seen > ?
                    GROUP BY user_id
                ) u
            """
            txn.execute(sql, (yesterday,))
            count, = txn.fetchone()
            return count
        return self.runInteraction("count_users", _count_users)
def count_daily_users ( self ) : def _count_users ( txn ) : yesterday = int ( self . _clock . time_msec ( ) ) - ( 1000 * 60 * 60 * 24 ) sql = """
                SELECT COALESCE(count(*), 0) FROM (
                    SELECT user_id FROM user_ips
                    WHERE last_seen > ?
                    GROUP BY user_id
                ) u
            """ txn . execute ( sql , ( yesterday , ) ) count , = txn . fetchone ( ) return count return self . runInteraction ( "count_users" , _count_users )
Counts the number of users who used this homeserver in the last 24 hours.
Counts the number of users who used this homeserver in the last 24 hours .
"""
        Counts the number of users who used this homeserver in the last 24 hours.
        """
self