Skip to content

Commit fbfc599

Browse files
fix: retrieve remote profiles only once (#340)
fix: in profile retrieval, only describe each profile once
1 parent d17a1c4 commit fbfc599

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

prez/services/generate_profiles.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,10 @@ async def create_profiles_graph(repo) -> Graph:
2222
PREFIX prez: <https://prez.dev/>
2323
2424
DESCRIBE ?prof {
25+
SELECT DISTINCT ?prof {
2526
VALUES ?prof_class { prez:ListingProfile prez:ObjectProfile prez:IndexProfile }
2627
?prof a ?prof_class
28+
}
2729
}
2830
"""
2931
g, _ = await repo.send_queries([remote_profiles_query], [])

0 commit comments

Comments
 (0)