From e71bf2160509a6d90f65ac1a197655e0c20ce21c Mon Sep 17 00:00:00 2001 From: Mojtaba-z Date: Wed, 5 Nov 2025 09:11:53 +0330 Subject: [PATCH] small update --- .env.local | 2 +- apps/pos_device/services/services.py | 1 + logs/django_requests.log | 4 ++++ 3 files changed, 6 insertions(+), 1 deletion(-) diff --git a/.env.local b/.env.local index 681373d..2028adf 100644 --- a/.env.local +++ b/.env.local @@ -7,7 +7,7 @@ ENV_NAME=DEV # Database secrets DB_HOST=31.7.78.133 DB_PORT=14352 -DB_NAME=Production +DB_NAME=Development DB_USERNAME=postgres DB_PASSWORD=pfLIVXupbDetvFMt2gUvxLXUL9b4HIOHaPcKXsBEZ1i8zl0iLUjmhUfXlGfJKcTV diff --git a/apps/pos_device/services/services.py b/apps/pos_device/services/services.py index 8a2fc37..16874de 100644 --- a/apps/pos_device/services/services.py +++ b/apps/pos_device/services/services.py @@ -116,6 +116,7 @@ def agency_organization_pos_info( }) return pos_sharing_list + return None def get_organization_by_stake_holder(id: int = None, stake_holder: StakeHolders = None) -> typing.Any: diff --git a/logs/django_requests.log b/logs/django_requests.log index b703b0e..81b463c 100644 --- a/logs/django_requests.log +++ b/logs/django_requests.log @@ -1880,3 +1880,7 @@ TypeError: 'NoneType' object is not iterable [2025-11-04 17:41:16,873] INFO django.utils.autoreload | IP: - | Path: - | Watching for file changes with StatReloader [2025-11-04 17:41:21,231] INFO django.server | IP: - | Path: - | "GET /product/pos/api/v1/distributions/rancher_distributions?national_code=4050820765 HTTP/1.1" 301 0 [2025-11-04 17:41:21,894] INFO django.server | IP: - | Path: - | "GET /product/pos/api/v1/distributions/rancher_distributions/?national_code=4050820765 HTTP/1.1" 200 3431 +[2025-11-05 08:55:48,912] INFO django.utils.autoreload | IP: - | Path: - | Watching for file changes with StatReloader +[2025-11-05 08:57:41,355] INFO django.server | IP: - | Path: - | "GET /product/pos/api/v1/distributions/rancher_distributions?national_code=4050820765 HTTP/1.1" 301 0 +[2025-11-05 08:57:41,954] INFO django.server | IP: - | Path: - | "GET /product/pos/api/v1/distributions/rancher_distributions/?national_code=4050820765 HTTP/1.1" 200 3431 +[2025-11-05 09:08:43,547] INFO django.utils.autoreload | IP: - | Path: - | Watching for file changes with StatReloader