Skip to content

Commit

Permalink
chore
Browse files Browse the repository at this point in the history
  • Loading branch information
MustafaMunir123 committed Dec 8, 2023
1 parent 998f5db commit 44b312c
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 11 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/django-linter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@ env:
on:
pull_request:
branches: [ "master", "feature"]
paths: ["*"]
paths: ["apps/**"]

push:
branches: [ "master", "feature"]
paths: ["./apps/**"]
paths: ["apps/**"]


jobs:
Expand Down
5 changes: 0 additions & 5 deletions apps/transactions/api/v1/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,10 @@
TransactionsAPIView,
)

# router = DefaultRouter()

# router.register("", TransactionsAPIView, basename='Transaction')

urlpatterns = [
path("account/create/", AccountAPIView.as_view()),
path("account/<int:pk>/", 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()),
Expand Down
4 changes: 0 additions & 4 deletions apps/transactions/api/v1/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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:
Expand Down

0 comments on commit 44b312c

Please sign in to comment.