mirror of https://github.com/zulip/zulip.git
Change matching for client strings in /activity to use __startswith.
This way we can match prefixes, like "API: Foo". (imported from commit 2acde88e31b4f2f4a418f3930975a5f3a4e9ef2d)
This commit is contained in:
parent
e0cf6494ed
commit
85b4ffbf2e
|
@ -1195,7 +1195,7 @@ class ActivityTable(object):
|
||||||
self.has_pointer = True
|
self.has_pointer = True
|
||||||
for record in UserActivity.objects.filter(
|
for record in UserActivity.objects.filter(
|
||||||
query=url,
|
query=url,
|
||||||
client__name=client_name).select_related():
|
client__name__startswith=client_name).select_related():
|
||||||
row = self.rows.setdefault(record.user_profile.user.email, {})
|
row = self.rows.setdefault(record.user_profile.user.email, {})
|
||||||
row['realm'] = record.user_profile.realm.domain
|
row['realm'] = record.user_profile.realm.domain
|
||||||
row['full_name'] = record.user_profile.full_name
|
row['full_name'] = record.user_profile.full_name
|
||||||
|
|
Loading…
Reference in New Issue