From eb75b380a32c65dc8d0857bae093c7a96f30f024 Mon Sep 17 00:00:00 2001 From: Jacob Hodgdon Date: Tue, 24 Aug 2021 15:48:36 -0400 Subject: removal of jira Change-Id: I1b1da49147219d94837cdd50b908ba30f8cf961c Signed-off-by: Jacob Hodgdon Signed-off-by: Sawyer Bergeron Signed-off-by: Raven Hodgdon --- src/booking/quick_deployer.py | 1 - src/booking/stats.py | 2 +- src/booking/urls.py | 2 +- src/booking/views.py | 1 - 4 files changed, 2 insertions(+), 4 deletions(-) (limited to 'src/booking') diff --git a/src/booking/quick_deployer.py b/src/booking/quick_deployer.py index 5e5bc8b..9806348 100644 --- a/src/booking/quick_deployer.py +++ b/src/booking/quick_deployer.py @@ -227,7 +227,6 @@ def create_from_API(body, user): data['scenario'] = None data['image'] = Image.objects.get(pk=booking_info['imageLabID']) - data['resource_template'] = ResourceTemplate.objects.get(pk=booking_info['templateID']) data['lab'] = data['resource_template'].lab data['owner'] = user diff --git a/src/booking/stats.py b/src/booking/stats.py index 626ed79..70f91fa 100644 --- a/src/booking/stats.py +++ b/src/booking/stats.py @@ -104,5 +104,5 @@ class StatisticsManager(object): "user": [x, users], "utils": [in_use, not_in_use, maintenance], "projects": [project_keys, project_counts], - "colors": anuket_colors if os.environ['TEMPLATE_OVERRIDE_DIR'] == 'laas' else lfedge_colors + "colors": anuket_colors if os.environ.get('TEMPLATE_OVERRIDE_DIR') == 'laas' else lfedge_colors } diff --git a/src/booking/urls.py b/src/booking/urls.py index cdf18ae..0b60351 100644 --- a/src/booking/urls.py +++ b/src/booking/urls.py @@ -38,7 +38,7 @@ from booking.views import ( booking_modify_image ) -app_name = "booking" +app_name = 'booking' urlpatterns = [ url(r'^detail/(?P[0-9]+)/$', booking_detail_view, name='detail'), url(r'^(?P[0-9]+)/$', booking_detail_view, name='booking_detail'), diff --git a/src/booking/views.py b/src/booking/views.py index 2b910e7..a418c82 100644 --- a/src/booking/views.py +++ b/src/booking/views.py @@ -127,7 +127,6 @@ class ResourceBookingsJSON(View): 'start', 'end', 'purpose', - 'jira_issue_status', 'config_bundle__name' ) return JsonResponse({'bookings': list(bookings)}) -- cgit 1.2.3-korg