Skip to content

Commit fc952df

Browse files
committed
[_802] handle result/config import
1 parent 7d3f180 commit fc952df

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

irods/results.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
from prettytable import PrettyTable
21
from irods.models import ModelBase
32

43

@@ -15,13 +14,15 @@ def __init__(self, raw):
1514
self.continue_index = 0
1615

1716
def __str__(self):
17+
from prettytable import PrettyTable
1818
table = PrettyTable()
1919
for col in self.cols:
2020
table.add_column(ModelBase.columns()[col.attriInx].icat_key, col.value)
2121
table.align = "l"
2222
return table.get_string()
2323

2424
def get_html_string(self, *args, **kwargs):
25+
from prettytable import PrettyTable
2526
table = PrettyTable()
2627
for col in self.cols:
2728
table.add_column(ModelBase.columns()[col.attriInx].icat_key, col.value)

0 commit comments

Comments
 (0)