Properly reverse the census info
authorKarl Pinc <kop@karlpinc.com>
Mon, 5 Aug 2024 05:51:54 +0000 (01:51 -0400)
committerKarl Pinc <kop@karlpinc.com>
Mon, 5 Aug 2024 05:51:54 +0000 (01:51 -0400)
src/pgwui_upcen/views/upcen.py

index 82c80b8ed9e199dde241b1e15f5d8250c8d6bda8..4b3efbdf2943e303444e1975b438c163ffec0586 100644 (file)
@@ -109,7 +109,9 @@ class SaveUCLine(pgwui_core.core.DataLineProcessor,
         # Updating the statdate causes a lot of checking to be done.
         errors = []
         col = len(udl.tuples) - 2
-        for code in udl.tuples[1:].reverse():
+        census_info = udl.tuples[1:]
+        census_info.reverse()
+        for code in census_info:
             date = self.dates[col]
             code = code.strip()
             if code != 'N':