From c6b466144f4e9bd47c2b478f6643004bfcc4b87c Mon Sep 17 00:00:00 2001 From: Laurent Date: Thu, 3 Apr 2025 09:18:49 +0200 Subject: [PATCH] remove prints --- sync/utils.py | 2 +- sync/views.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/sync/utils.py b/sync/utils.py index 3de1a0c..f8b3cd3 100644 --- a/sync/utils.py +++ b/sync/utils.py @@ -31,7 +31,7 @@ def get_serializer(instance, model_name): def get_data(model_name, model_id): model = sync_registry.get_model(model_name) - print(f'model_name = {model_name}') + # print(f'model_name = {model_name}') # model = apps.get_model(app_label=app_label, model_name=model_name) return model.objects.get(id=model_id) diff --git a/sync/views.py b/sync/views.py index 5410854..5ff0480 100644 --- a/sync/views.py +++ b/sync/views.py @@ -106,10 +106,10 @@ class SynchronizationApi(HierarchyApiView): data = op.get('data') data_id = data.get('id') device_registry.register(data_id, device_id) - print(f'*** YEAH: {model_operation} : {model_name}') + # print(f'*** YEAH: {model_operation} : {model_name}') try: - print(f'{model_operation} : {model_name}, id = {data['id']}') + # print(f'{model_operation} : {model_name}, id = {data['id']}') models.add(model_name)