Skip to content

Commit

Permalink
Merge pull request #1827 from watchdogpolska/develop
Browse files Browse the repository at this point in the history
v1.5.21
  • Loading branch information
PiotrIw authored Sep 19, 2024
2 parents 4f28b1d + d621d91 commit 7be98c0
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 10 deletions.
4 changes: 2 additions & 2 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -104,14 +104,14 @@ services:
# mailbox secrets in imap-to-webhook-url.env
#
# imap-to-webhook-feder:
# image: quay.io/watchdogpolska/imap-to-webhook:latest
# image: siecobywatelska/imap-to-webhook:latest-prod
# environment:
# WEBHOOK_URL: "http://web:8000/listy/webhook?secret=dev_letter_rec_very_secret"
# SENTRY_DSN: ""
# SENTRY_ENVIRONMENT: "feder-dev"
# COMPRESS_EML: "True"
# env_file:
# - secrets_imap-to-webhook-url.env:optional
# - secrets_imap-to-webhook-url.env

volumes:
mysql-data:
Expand Down
2 changes: 1 addition & 1 deletion feder/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# PEP 396: The __version__ attribute's value SHOULD be a string.
__version__ = "1.5.20"
__version__ = "1.5.21"


# Compatibility to eg. django-rest-framework
Expand Down
7 changes: 4 additions & 3 deletions feder/letters/forms.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,8 +95,8 @@ def save(self, *args, **kwargs):
self.instance.body = html_to_text(self.cleaned_data["html_body"])
if (
not (
self.fields["html_body"].widget.attrs["readonly"]
or self.fields["title"].widget.attrs["readonly"]
self.fields["html_body"].widget.attrs.get("readonly", False)
or self.fields["title"].widget.attrs.get("readonly", False)
)
and ("title" in self.changed_data or "html_body" in self.changed_data)
and not self.instance.author_institution
Expand Down Expand Up @@ -128,8 +128,9 @@ def save(self, *args, **kwargs):
+ " categorization and upadte normalized answers created"
),
)
if not hasattr(self.instance, "record"):
self.instance.record = Record.objects.create(case=self.cleaned_data["case"])
self.instance.save()

return super().save(*args, **kwargs)


Expand Down
6 changes: 3 additions & 3 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion secrets_imap-to-webhook-url.env.example
Original file line number Diff line number Diff line change
@@ -1 +1 @@
IMAP_URL="imap+ssl://imap_mailbox_user:imap_mailbox_password@imap_mailbox_server"
IMAP_URL=imap://imap_mailbox_user:imap_mailbox_password@imap_mailbox_server

0 comments on commit 7be98c0

Please sign in to comment.