From 1e109ab8848298e62798812fe1e072aa7add69f6 Mon Sep 17 00:00:00 2001 From: Laurent Date: Fri, 14 Mar 2025 14:22:52 +0100 Subject: [PATCH] urls update --- api/urls.py | 4 ++-- sync/views.py | 2 ++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/api/urls.py b/api/urls.py index 45354d7..a0fd475 100644 --- a/api/urls.py +++ b/api/urls.py @@ -31,8 +31,8 @@ router.register(r'unregistered-players', views.UnregisteredPlayerViewSet) urlpatterns = [ path('', include(router.urls)), - path('data/', SynchronizationApi.as_view(), name="data"), - path('user-data-access/', UserDataAccessApi.as_view(), name="user-data-access"), + path('sync-data/', SynchronizationApi.as_view(), name="data"), + path('data-access/', UserDataAccessApi.as_view(), name="user-data-access"), path('api-token-auth/', obtain_auth_token, name='api_token_auth'), path("user-by-token/", views.user_by_token, name="user_by_token"), diff --git a/sync/views.py b/sync/views.py index 0f8f076..399cbf2 100644 --- a/sync/views.py +++ b/sync/views.py @@ -182,6 +182,8 @@ class SynchronizationApi(HierarchyApiView): def get(self, request, *args, **kwargs): last_update_str = request.query_params.get('last_update') device_id = request.query_params.get('device_id') + + print(f'last_update_str = {last_update_str}') decoded_last_update = unquote(last_update_str) # Decodes %2B into + # print(f'last_update_str = {last_update_str}')