@@ -1378,8 +1378,9 @@ def get_current(
1378
1378
:returns: The value of the column requested
1379
1379
"""
1380
1380
logger .debug (f"Getting current record for { self .table } .{ column } " )
1381
- if self .rows :
1381
+ if len ( self .rows . index ) :
1382
1382
if self .get_current_row ()[column ]:
1383
+ print ("Current: " , self .get_current_row ()[column ])
1383
1384
return self .get_current_row ()[column ]
1384
1385
return default
1385
1386
return default
@@ -1980,7 +1981,7 @@ def table_values(
1980
1981
1981
1982
values = []
1982
1983
try :
1983
- all_columns = self .rows [ 0 ]. keys ( )
1984
+ all_columns = list ( self .rows . columns )
1984
1985
except IndexError :
1985
1986
all_columns = []
1986
1987
@@ -3186,7 +3187,9 @@ def update_elements(
3186
3187
# Populate the combobox entries
3187
3188
else :
3188
3189
lst = []
3189
- for row in target_table .rows :
3190
+ print (type (target_table ), target_table )
3191
+ for index , row in target_table .rows .iterrows ():
3192
+ print (row )
3190
3193
print (
3191
3194
row ,
3192
3195
pk_column ,
@@ -3198,7 +3201,7 @@ def update_elements(
3198
3201
3199
3202
# Map the value to the combobox, by getting the description_column
3200
3203
# and using it to set the value
3201
- for row in target_table .rows :
3204
+ for index , row in target_table .rows . iterrows () :
3202
3205
if row [target_table .pk_column ] == mapped .dataset [rel .fk_column ]:
3203
3206
for entry in lst :
3204
3207
if entry .get_pk () == mapped .dataset [rel .fk_column ]:
0 commit comments