Skip to content

Commit

Permalink
cd_manager: Don't trigger a BUILD_STATUS reset when manage.py is part of
Browse files Browse the repository at this point in the history
a path and not standalone.
  • Loading branch information
bionade24 committed Sep 29, 2024
1 parent 56960eb commit 83b0a51
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cd_manager/apps.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ class CdManagerConfig(AppConfig):
name = 'cd_manager'

def ready(self):
if ("manage.py" not in sys.argv) or ("runserver" in sys.argv):
if (not any("manage.py" in e for e in sys.argv)) or ("runserver" in sys.argv):
from cd_manager.models import Package
pkgs = Package.objects.filter(build_status="BUILDING").union(
Package.objects.filter(build_status="PREPARING"),
Expand Down

0 comments on commit 83b0a51

Please sign in to comment.