mirror of
https://github.com/element-hq/synapse
synced 2024-09-05 06:00:07 +00:00
pep8
This commit is contained in:
parent
9ee44a372d
commit
b4e37c6f50
1 changed files with 4 additions and 2 deletions
|
@ -280,7 +280,8 @@ class DataStore(RoomMemberStore, RoomStore,
|
||||||
|
|
||||||
sql = """
|
sql = """
|
||||||
SELECT platform, COALESCE(count(*), 0) FROM (
|
SELECT platform, COALESCE(count(*), 0) FROM (
|
||||||
SELECT users.name, platform, users.creation_ts * 1000, MAX(uip.last_seen)
|
SELECT users.name, platform, users.creation_ts * 1000,
|
||||||
|
MAX(uip.last_seen)
|
||||||
FROM users
|
FROM users
|
||||||
INNER JOIN (
|
INNER JOIN (
|
||||||
SELECT
|
SELECT
|
||||||
|
@ -317,7 +318,8 @@ class DataStore(RoomMemberStore, RoomStore,
|
||||||
|
|
||||||
sql = """
|
sql = """
|
||||||
SELECT COALESCE(count(*), 0) FROM (
|
SELECT COALESCE(count(*), 0) FROM (
|
||||||
SELECT users.name, users.creation_ts * 1000, MAX(uip.last_seen)
|
SELECT users.name, users.creation_ts * 1000,
|
||||||
|
MAX(uip.last_seen)
|
||||||
FROM users
|
FROM users
|
||||||
INNER JOIN (
|
INNER JOIN (
|
||||||
SELECT
|
SELECT
|
||||||
|
|
Loading…
Reference in a new issue