From a9dbb246c0390b8586b0422caa9a216ec27d2a39 Mon Sep 17 00:00:00 2001 From: "Karl O. Pinc" Date: Sat, 13 Jul 2024 22:07:59 -0500 Subject: [PATCH] Improved python --- src/pgwui_core/core.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) 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): ''' -- 2.34.1