Skip to content

Commit 996fe96

Browse files
committed
removed debug prints
1 parent 8a8adf0 commit 996fe96

File tree

3 files changed

+3
-5
lines changed

3 files changed

+3
-5
lines changed

cesnet_service_path_plugin/graphql/filters.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66
from strawberry_django import FilterLookup
77
from django.db.models import Q
88

9+
import logging
10+
911
from netbox.graphql.filter_mixins import NetBoxModelFilterMixin
1012

1113
if TYPE_CHECKING:
@@ -76,7 +78,7 @@ class SegmentFilter(NetBoxModelFilterMixin):
7678
@strawberry_django.filter_field
7779
def has_path_data(self, value: bool, prefix: str) -> Q:
7880
"""Filter segments based on whether they have path geometry data"""
79-
81+
logging.debug(f"Filtering segments with has_path_data={value}")
8082
if value:
8183
# Filter for segments WITH path data
8284
return Q(**{f"{prefix}path_geometry__isnull": False})

cesnet_service_path_plugin/templates/cesnet_service_path_plugin/segment_edit.html

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
{% load i18n %}
33
{% load static %}
44
{% block title %}
5-
TEST
65
<link rel="stylesheet"
76
href="{% static 'cesnet_service_path_plugin/css/segment_form.css' %}">
87
<script src="{% static 'cesnet_service_path_plugin/js/segment_form.js' %}"></script>

cesnet_service_path_plugin/views/segment.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -159,9 +159,6 @@ def segment_map_view(request, pk):
159159
# if hasattr(segment, "status") and hasattr(segment, "get_status_display"):
160160
# segment_style["color"] = status_colors.get(segment.get_status_display(), "#dc3545")
161161

162-
print("has path data:", segment.has_path_data())
163-
print("has fallback line:", has_fallback_line)
164-
165162
context = {
166163
"object": segment,
167164
"segment": segment,

0 commit comments

Comments
 (0)