Coverage for postrfp/shared/fetch/__init__.py: 100%
11 statements
« prev ^ index » next coverage.py v7.11.0, created at 2025-10-22 21:34 +0000
« prev ^ index » next coverage.py v7.11.0, created at 2025-10-22 21:34 +0000
1# ruff: noqa: F401
2"""
3Functions which fetch objects from the database without checking for
4permissions etc
5"""
7from .answq import (
8 answer,
9 answers_in_issues_query,
10 visible_answers,
11 element_answers,
12 importable_answer_lookup,
13 answer_attachments_q,
14 answering_stats,
15 issue,
16)
18# Import Score-related functions from scoreq
19from .scoreq import (
20 scores,
21 or_create_score,
22 or_create_scores_batch,
23 scoring_data,
24 score_totals_by_project,
25 score_gaps,
26 question_scoresummary,
27 subsection_scoressummary,
28 section_scoresummary,
29 ScoreTuple,
30 get_permission_for_scoreset,
31)
33# Import Section-related functions from secq
34from .secq import (
35 section,
36 section_of_project,
37 section_by_id,
38 sections,
39 visible_subsections_query,
40 get_subsections_recursive,
41 sec_total_weighting,
42 visible_nodes,
43)
45# Import Question-related functions from quesq
46from .quesq import (
47 qelement,
48 question,
49 question_of_project,
50 question_of_section,
51 question_instance_by_number,
52 ElBundle,
53 QAttBundle,
54 response_states,
55 answered_questions,
56 iter_quick_questions,
57 questionnaire_stats,
58 unanswered_mandatory,
59 _question_ids_q,
60 importable_answers,
61 duplicated_qdefs,
62)
63from .nodesq import (
64 light_nodes,
65 light_tree,
66)
68# Import Weighting-related functions from weightq
69from .weightq import (
70 weightings_dict,
71 total_weightings_dict,
72 _ws_weights,
73)
75# Import User/Org-related functions from userq
76from .userq import (
77 user,
78 organisation,
79 user_by_password,
80 dummy_hash,
81 project_users,
82 issue_watchers,
83 project_watchers,
84 edges_for_org_query,
85)
87# Import Project/Participant-related functions from projq
88from .projq import (
89 project,
90 pw_cols,
91 projects_with_watched,
92 participant_notes_query,
93 vendor_notes,
94 note,
95 issues_for_respondent,
96 category_for_user,
97)
99# Import Audit-related functions from audq
100from .audq import (
101 audit_events,
102 project_audit_events,
103 latest_event,
104 webhooks_for_event,
105)
107from .autoscoreq import (
108 generate_autoscores,
109 scores_dict,
110 scores_dict_scoreset,
111)
113from .searchq import search