Merge ~twom/launchpad:gdpr-overview-data into launchpad:master

Proposed by Tom Wardill
Status: Merged
Approved by: Tom Wardill
Approved revision: 4c586c98b0a160d3ed424d02035c37b943bbaa62
Merge reported by: Otto Co-Pilot
Merged at revision: not available
Proposed branch: ~twom/launchpad:gdpr-overview-data
Merge into: launchpad:master
Diff against target: 32 lines (+4/-4)
1 file modified
lib/lp/registry/model/person.py (+4/-4)
Reviewer Review Type Date Requested Status
Colin Watson (community) Approve
Review via email: mp+405695@code.launchpad.net

Commit message

Use inbuilt any, not DB any

To post a comment you must log in.
Revision history for this message
Colin Watson (cjwatson) :
review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
diff --git a/lib/lp/registry/model/person.py b/lib/lp/registry/model/person.py
index 3d8939c..edac8e9 100644
--- a/lib/lp/registry/model/person.py
+++ b/lib/lp/registry/model/person.py
@@ -304,7 +304,7 @@ from lp.services.propertycache import (
304 cachedproperty,304 cachedproperty,
305 get_property_cache,305 get_property_cache,
306 )306 )
307from lp.services.searchbuilder import any307from lp.services.searchbuilder import any as search_any
308from lp.services.statistics.interfaces.statistic import ILaunchpadStatisticSet308from lp.services.statistics.interfaces.statistic import ILaunchpadStatisticSet
309from lp.services.verification.interfaces.authtoken import LoginTokenType309from lp.services.verification.interfaces.authtoken import LoginTokenType
310from lp.services.verification.interfaces.logintoken import ILoginTokenSet310from lp.services.verification.interfaces.logintoken import ILoginTokenSet
@@ -1469,7 +1469,7 @@ class Person(
1469 from lp.bugs.model.bugtask import BugTask1469 from lp.bugs.model.bugtask import BugTask
1470 today = datetime.today().date()1470 today = datetime.today().date()
1471 search_params = BugTaskSearchParams(1471 search_params = BugTaskSearchParams(
1472 user, assignee=any(*self.participant_ids),1472 user, assignee=search_any(*self.participant_ids),
1473 milestone_dateexpected_before=date,1473 milestone_dateexpected_before=date,
1474 milestone_dateexpected_after=today)1474 milestone_dateexpected_after=today)
14751475
@@ -4103,8 +4103,8 @@ class PersonSet:
41034103
4104 # Related packages is a general overview, if we have any of them4104 # Related packages is a general overview, if we have any of them
4105 # the related packages exist4105 # the related packages exist
4106 if any(maintained_packages, uploaded_packages,4106 if any([maintained_packages, uploaded_packages,
4107 ppa_packages, synchronised_packages):4107 ppa_packages, synchronised_packages]):
4108 overview['related-packages'] = canonical_url(4108 overview['related-packages'] = canonical_url(
4109 person, view_name='+related-packages')4109 person, view_name='+related-packages')
41104110

Subscribers

People subscribed via source and target branches

to status/vote changes: