• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

liqd / roots / 22995037636

12 Mar 2026 09:24AM UTC coverage: 81.129% (-0.4%) from 81.522%
22995037636

push

github

web-flow
apps/summarization: refactor export (#88)

74 of 360 new or added lines in 16 files covered. (20.56%)

7386 of 9104 relevant lines covered (81.13%)

0.81 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

15.38
/apps/summarization/export_utils/processing/module_utils.py
1
def get_module_status(module):
1✔
2
    """
3
    Return the status of a module based on its phases.
4

5
    Returns:
6
        str: 'past', 'active', or 'future'
7
    """
8

9
    # Use the existing queryset methods
NEW
10
    try:
×
NEW
11
        if module.module_has_finished:
×
NEW
12
            return "past"
×
NEW
13
        elif module.active_phase:
×
NEW
14
            return "active"
×
15
        else:
NEW
16
            return "future"
×
NEW
17
    except (TypeError, ValueError):
×
18
        # Fallback if module_has_finished or active_phase fail due to None datetime values
NEW
19
        return "future"
×
20

21

22
def get_module_type_from_name(module_name):
1✔
23
    """Map module name to blueprint type"""
NEW
24
    module_type_map = {
×
25
        "brainstorming": "brainstorming",
26
        "map-brainstorming": "map-brainstorming",
27
        "idea-challenge": "idea-collection",
28
        "spatial-idea-challenge": "map-idea-collection",
29
        "text-review": "text-review",
30
        "poll": "poll",
31
        "participatory-budgeting": "participatory-budgeting",
32
        "interactive-event": "interactive-event",
33
        "topic-prioritization": "topic-prioritization",
34
        "debate": "debate",
35
    }
NEW
36
    name_lower = module_name.lower().replace(" ", "-")
×
NEW
37
    return module_type_map.get(name_lower, "unknown")
×
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc