TNO Intern

Commit 9c2d2348 authored by Arjo Segers's avatar Arjo Segers
Browse files

Fixed record selection.

parent 8f9c08fc
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -55,6 +55,9 @@
# 2025-09, Arjo Segers
#   Improved speed of CSO_Listing.Selection method.
#
# 2025-10, Arjo Segers
#   Replace ' and ' by ' & ' when selecting records.
#

########################################################################
###
@@ -1661,6 +1664,8 @@ class CSO_Listing(object):
                # endfor
                # testing ...
                logging.info(f"{indent}selection `{selection}` ...")
                # adhoc: replace some operators that are not allowded anymore ...
                selection = selection.replace( " and ", " & " )
                # evaluate:
                xdf = df[ eval(selection) ]
                # any?