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

inventree / InvenTree / 8604739077

08 Apr 2024 06:10PM CUT coverage: 91.825%. First build
8604739077

Pull #6978

github

web-flow
Merge 410171001 into 4adce85ef
Pull Request #6978: Bump docker/setup-buildx-action from 3.2.0 to 3.3.0

221 of 649 branches covered (34.05%)

Branch coverage included in aggregate %.

33252 of 35804 relevant lines covered (92.87%)

1.63 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