Skip to content

Commit

Permalink
chore: update config
Browse files Browse the repository at this point in the history
  • Loading branch information
MustafaMunir123 committed Dec 11, 2023
2 parents 062bfb1 + 47f5433 commit 074a976
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 15 deletions.
6 changes: 2 additions & 4 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 All @@ -31,5 +31,3 @@ jobs:

- name: Install and Run Pre-commit
uses: pre-commit/[email protected]
with:
config: .pre-commit-config.yaml
3 changes: 1 addition & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,7 @@ repos:
- id: djlint-reformat-django
- id: djlint-django


ci:
autoupdate_schedule: monthly
autoupdate_schedule: weekly
skip: []
submodules: false
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 074a976

Please sign in to comment.