diff --git a/.github/workflows/django-linter.yml b/.github/workflows/django-linter.yml index 59bf3b2..ec72da7 100644 --- a/.github/workflows/django-linter.yml +++ b/.github/workflows/django-linter.yml @@ -8,11 +8,11 @@ env: on: pull_request: branches: [ "master", "feature"] - paths: ["*"] + paths: ["apps/**"] push: branches: [ "master", "feature"] - paths: ["./apps/**"] + paths: ["apps/**"] jobs: diff --git a/apps/transactions/api/v1/urls.py b/apps/transactions/api/v1/urls.py index f329ba0..441e270 100644 --- a/apps/transactions/api/v1/urls.py +++ b/apps/transactions/api/v1/urls.py @@ -13,15 +13,10 @@ TransactionsAPIView, ) -# router = DefaultRouter() - -# router.register("", TransactionsAPIView, basename='Transaction') - urlpatterns = [ path("account/create/", AccountAPIView.as_view()), path("account//", AccountAPIView.as_view()), path("account/all/", AccountAPIView.as_view()), - # url("", include(router.urls)), path("create/", TransactionsAPIView.as_view()), path("update/", TransactionsAPIView.as_view()), path("all/details/", TransactionsAPIView.as_view()), diff --git a/apps/transactions/api/v1/views.py b/apps/transactions/api/v1/views.py index 2ac7b96..0a03551 100644 --- a/apps/transactions/api/v1/views.py +++ b/apps/transactions/api/v1/views.py @@ -208,8 +208,6 @@ def get(self, request, pk=None): try: if "ledger" in request.path: return self.export_ledger(request=request, pk=pk) - # else: - # return self.export_all(request) except Exception as ex: raise ex @@ -259,8 +257,6 @@ def get(self, request, pk: int): data_list=sorted_transactions, pk=pk, debit_credit=debit_credit ) data = {"account": account_serializer.data, "debit_credit": debit_credit, "transactions": restructured_data} - # if request.data["export"]: - # LedgerServices.create_update_opening(debit_credit, pk) return success_response(data=data, status=status.HTTP_200_OK) except Exception as ex: