HomePhabricator

Use `get_predicate` in `get_info_no_grouping_query`

Tags
None
Referenced Files
None
Subscribers
None

Description

Use get_predicate in get_info_no_grouping_query

This should have been done when get_predicate was added in 220d51e5.

This solves a hard crash when calculating no-groups
with a PredicateGrouping [1].

[1] Stack trace:

File "app.py", line 29, in update processor.process_one_page(page_title)
File "./pages_processor.py", line 196, in process_one_page self.process_page(page)
File "./pages_processor.py", line 124, in process_page output = stats.retrieve_and_process_data()
File "./property_statistics.py", line 233, in retrieve_and_process_data text = self.process_data(groupings)
File "./property_statistics.py", line 273, in process_data text += self.make_stats_for_no_group()
File "./property_statistics.py", line 198, in make_stats_for_no_group column_entry.get_info_no_grouping_query(self)
File "./column.py", line 94, in get_info_no_grouping_query MINUS {{ ?entity wdt:{property_statistics.grouping_configuration.property} _:b28. }}

Details

Provenance
JeanFredAuthored on May 4 2024, 8:14 PM
Parents
R2566:8ec2fec2a4ed: Add Queries endpoint support for Property columns with qualifier
Branches
Unknown
Tags
Unknown
ChangeId
None