From: Karl O. Pinc Date: Sun, 14 Jul 2024 03:07:59 +0000 (-0500) Subject: Improved python X-Git-Url: https://papio.biology.duke.edu/gitweb/?a=commitdiff_plain;h=a9dbb246c0390b8586b0422caa9a216ec27d2a39;p=pgwui_core Improved python --- diff --git a/src/pgwui_core/core.py b/src/pgwui_core/core.py index 679bcf8..7abecec 100644 --- a/src/pgwui_core/core.py +++ b/src/pgwui_core/core.py @@ -469,10 +469,7 @@ class UploadDoubleFileFormMixin(UploadFormBaseMixin): super().read() post = self.uh.request.POST - if 'last_key' in post: - self['last_key'] = post['last_key'] - else: - self['last_key'] = '' + self['last_key'] = post.get('last_key', '') def write_response(self, response): '''