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

inventree / InvenTree / 8535197168

03 Apr 2024 07:58AM UTC coverage: 90.342% (-2.2%) from 92.496%
8535197168

Pull #6881

github

web-flow
Merge a1722af93 into 6be2ede5e
Pull Request #6881: [PUI] Add coverage testing

227 of 631 branches covered (35.97%)

Branch coverage included in aggregate %.

0 of 1 new or added line in 1 file covered. (0.0%)

1 existing line in 1 file now uncovered.

31971 of 35009 relevant lines covered (91.32%)

1.12 hits per line

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

0.0
/src/backend/InvenTree/label/tasks.py
1
"""Background tasks for the label app."""
2

3
from datetime import timedelta
4

5
from django.utils import timezone
6

7
from InvenTree.tasks import ScheduledTask, scheduled_task
8
from label.models import LabelOutput
9

10

11
@scheduled_task(ScheduledTask.DAILY)
12
def cleanup_old_label_outputs():
13
    """Remove old label outputs from the database."""
14
    # Remove any label outputs which are older than 30 days
15
    LabelOutput.objects.filter(created__lte=timezone.now() - timedelta(days=5)).delete()
×
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

© 2025 Coveralls, Inc