File tree Expand file tree Collapse file tree 1 file changed +16
-10
lines changed
Expand file tree Collapse file tree 1 file changed +16
-10
lines changed Original file line number Diff line number Diff line change @@ -52,17 +52,23 @@ async def main():
5252 for table in storage .tables .values ():
5353 if table ._meta .tablename == config .table_name :
5454 # visible columns
55- visible_columns = [
56- column
57- for column in table ._meta .columns
58- if column ._meta .name in config .visible_columns
59- ]
55+ try :
56+ visible_columns = [
57+ column
58+ for column in table ._meta .columns
59+ if column ._meta .name in config .visible_columns
60+ ]
61+ except TypeError :
62+ visible_columns = table ._meta .columns
6063 # visible filters
61- visible_filters = [
62- column
63- for column in table ._meta .columns
64- if column ._meta .name in config .visible_filters
65- ]
64+ try :
65+ visible_filters = [
66+ column
67+ for column in table ._meta .columns
68+ if column ._meta .name in config .visible_filters
69+ ]
70+ except TypeError :
71+ visible_filters = table ._meta .columns
6672 # rich text columns
6773 rich_text_columns = [
6874 column
You can’t perform that action at this time.
0 commit comments