Skip to content

Commit

Permalink
fix: lib dependencies (#588)
Browse files Browse the repository at this point in the history
* fix: lib dependencies

* fix comment

* upgrade intacct version

---------

Co-authored-by: GitHub Actions <[email protected]>
  • Loading branch information
ruuushhh and GitHub Actions authored Jan 17, 2025
1 parent 603e558 commit 69d5ff3
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 26 deletions.
3 changes: 1 addition & 2 deletions apps/fyle/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@

from django.contrib.postgres.aggregates import ArrayAgg
from django.contrib.postgres.fields import ArrayField
from django.contrib.postgres.fields.jsonb import KeyTextTransform
from django.db import models
from django.db.models import Count, Q, JSONField

Expand Down Expand Up @@ -366,7 +365,7 @@ def _group_expenses(expenses, group_fields, workspace_id):
field = ExpenseAttribute.objects.filter(workspace_id=workspace_id,
attribute_type=field.upper()).first()
if field:
custom_fields[field.attribute_type.lower()] = KeyTextTransform(field.display_name, 'custom_properties')
custom_fields[field.attribute_type.lower()] = f'custom_properties__{field.display_name}'

expense_groups = list(expenses.values(*group_fields, **custom_fields).annotate(
total=Count('*'), expense_ids=ArrayAgg('id')))
Expand Down
2 changes: 1 addition & 1 deletion fyle_intacct_api/sentry.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ def init():
environment=os.environ.get('SENTRY_ENV'),
attach_stacktrace=True,
before_send=Sentry.before_send,
request_bodies='small',
max_request_body_size='small',
in_app_include=['apps.users',
'apps.workspaces',
'apps.mappings',
Expand Down
1 change: 0 additions & 1 deletion fyle_intacct_api/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,6 @@
'fyle_intacct_api.logging_middleware.LogPostRequestMiddleware',
'corsheaders.middleware.CorsMiddleware',
'django.middleware.common.CommonMiddleware',
'corsheaders.middleware.CorsPostCsrfMiddleware',
'django.middleware.security.SecurityMiddleware',
'django.contrib.sessions.middleware.SessionMiddleware',
'django.middleware.csrf.CsrfViewMiddleware',
Expand Down
1 change: 0 additions & 1 deletion fyle_intacct_api/tests/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,6 @@
'request_logging.middleware.LoggingMiddleware',
'corsheaders.middleware.CorsMiddleware',
'django.middleware.common.CommonMiddleware',
'corsheaders.middleware.CorsPostCsrfMiddleware',
'django.middleware.security.SecurityMiddleware',
'django.contrib.sessions.middleware.SessionMiddleware',
'django.middleware.csrf.CsrfViewMiddleware',
Expand Down
41 changes: 20 additions & 21 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,32 +1,31 @@
cryptography==3.3.2
dj-database-url==0.5.0
Django==3.2.14
cryptography==44.0.0
dj-database-url==2.3.0
Django==4.2.17
django-db-geventpool==4.0.1
django-cors-headers==3.2.0
django-picklefield==3.1
django-cors-headers==4.6.0
django-picklefield==3.2
fyle-djangoq2==1.0.0
django-request-logging==0.7.5
django-rest-framework==0.1.0
djangorestframework==3.11.2
djangorestframework==3.15.2
django-sendgrid-v5==1.2.0
future==0.18.2
future==1.0.0
fyle==0.37.2
fyle-accounting-mappings==1.36.3
fyle-integrations-platform-connector==1.39.3
fyle-rest-auth==1.7.2
gevent==23.9.1
gunicorn==20.1.0
psycopg2-binary==2.8.4
gevent==24.11.1
gunicorn==23.0.0
psycopg2-binary==2.9.10
pylint==2.7.4
pytest==7.1.3
pytest-cov==3.0.0
pytest-django==4.5.2
pytest-mock==3.8.2
requests==2.25.0
sageintacctsdk==1.23.3
sentry-sdk==1.19.1
six==1.13.0
pytest==8.3.4
pytest-cov==6.0.0
pytest-django==4.9.0
pytest-mock==3.14.0
requests==2.32.3
sageintacctsdk==1.26.0
sentry-sdk==2.19.2
six==1.17.0
Unidecode==1.1.2
sendgrid==6.9.7
sendgrid==6.11.0
python-dateutil==2.8.2
django-filter==21.1
django-filter==24.3

0 comments on commit 69d5ff3

Please sign in to comment.