mirror of
https://mau.dev/maunium/synapse.git
synced 2024-12-18 00:33:52 +01:00
Fix psycopg2 interpolation
This commit is contained in:
parent
5232d3bfb1
commit
64bc2162ef
1 changed files with 5 additions and 5 deletions
|
@ -289,11 +289,11 @@ class DataStore(RoomMemberStore, RoomStore,
|
||||||
user_id,
|
user_id,
|
||||||
last_seen,
|
last_seen,
|
||||||
CASE
|
CASE
|
||||||
WHEN user_agent LIKE '%Android%' THEN 'android'
|
WHEN user_agent LIKE '%%Android%%' THEN 'android'
|
||||||
WHEN user_agent LIKE '%iOS%' THEN 'ios'
|
WHEN user_agent LIKE '%%iOS%%' THEN 'ios'
|
||||||
WHEN user_agent LIKE '%Electron%' THEN 'electron'
|
WHEN user_agent LIKE '%%Electron%%' THEN 'electron'
|
||||||
WHEN user_agent LIKE '%Mozilla%' THEN 'web'
|
WHEN user_agent LIKE '%%Mozilla%%' THEN 'web'
|
||||||
WHEN user_agent LIKE '%Gecko%' THEN 'web'
|
WHEN user_agent LIKE '%%Gecko%%' THEN 'web'
|
||||||
ELSE 'unknown'
|
ELSE 'unknown'
|
||||||
END
|
END
|
||||||
AS platform
|
AS platform
|
||||||
|
|
Loading…
Reference in a new issue