diff options
author | Neil Johnson <neil@fragile.org.uk> | 2018-04-25 17:56:11 +0100 |
---|---|---|
committer | Neil Johnson <neil@fragile.org.uk> | 2018-04-25 17:56:11 +0100 |
commit | fb6015d0a6828d57c18d601ea36b1a8a4cebc0e2 (patch) | |
tree | 49846a87b0f95efef6269a054861a8b5c276e792 /synapse/storage/__init__.py | |
parent | Generate user daily stats (diff) | |
download | synapse-fb6015d0a6828d57c18d601ea36b1a8a4cebc0e2.tar.xz |
pep8
Diffstat (limited to 'synapse/storage/__init__.py')
-rw-r--r-- | synapse/storage/__init__.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/synapse/storage/__init__.py b/synapse/storage/__init__.py index 6f2f947433..c22d38800c 100644 --- a/synapse/storage/__init__.py +++ b/synapse/storage/__init__.py @@ -347,7 +347,6 @@ class DataStore(RoomMemberStore, RoomStore, return self.runInteraction("count_r30_users", _count_r30_users) - def generate_user_daily_visits(self): """ Generates daily visit data for use in cohort/ retention analysis @@ -390,14 +389,16 @@ class DataStore(RoomMemberStore, RoomStore, txn.execute(sql, (yesterday_start_time,)) sql = """ - INSERT INTO user_daily_visits (user_id, user_agent, device_id, timestamp) + INSERT INTO user_daily_visits (user_id. user_agent, + device_id, timestamp) VALUES (?, ?, ?, ?) """ for row in txn: txn.execute(sql, (row + (yesterday_start_time,))) - return self.runInteraction("generate_user_daily_visits", _generate_user_daily_visits) + return self.runInteraction("generate_user_daily_visits", + _generate_user_daily_visits) def get_users(self): """Function to reterive a list of users in users table. |