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

tjcsl / tin / 12667056433 / 1
54%
master: 54%

Build:
DEFAULT BRANCH: master
Ran 08 Jan 2025 08:47AM UTC
Files 52
Run time 1s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

08 Jan 2025 08:46AM UTC coverage: 54.777% (-0.01%) from 54.79%
12667056433.1

push

github

krishnans2006
Hotfix: Fix invalid query when killing submissions

This fixes the below production error:
```
  File ".../tin/tin/apps/submissions/views.py", line 106, in kill_view
    submission = get_object_or_404(submissions_editable, id=submission_id)
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File ".../site-packages/django/shortcuts.py", line 85, in get_object_or_404
    return queryset.get(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File ".../site-packages/django/db/models/query.py", line 640, in get
    raise self.model.MultipleObjectsReturned(
tin.apps.submissions.models.Submission.MultipleObjectsReturned: get() returned more than one Submission -- it returned 5!
```

One solution would have been to append a `.distinct()` to the query, but instead it was replaced by `filter_visible()` for consistency.

398 of 885 branches covered (44.97%)

Branch coverage included in aggregate %.

1494 of 2569 relevant lines covered (58.15%)

0.58 hits per line

Source Files on job Pyenv Unit Tests - 12667056433.1
  • Tree
  • List 0
  • Changed 1
  • Source Changed 0
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Build 12667056433
  • feec15e7 on github
  • Prev Job for on master (#12663289725.1)
  • Next Job for on master (#12667586419.1)
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