File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -303,8 +303,9 @@ def loader(self):
303303 self .rows = []
304304 try :
305305 with vd .Progress (gerund = 'loading' , total = 0 ):
306+ max_rows = self .options .max_rows
306307 for i , r in enumerate (self .iterload ()):
307- if self .precious and i > self . options . max_rows :
308+ if self .precious and i == max_rows :
308309 break
309310 self .addRow (r )
310311 except FileNotFoundError :
@@ -1051,8 +1052,9 @@ def loader(self):
10511052
10521053 self .rows = []
10531054 # add the rest of the rows
1055+ max_rows = self .options .max_rows
10541056 for i , r in enumerate (vd .Progress (itsource , gerund = 'loading' , total = 0 )):
1055- if self .precious and i > self . options . max_rows :
1057+ if self .precious and i == max_rows :
10561058 break
10571059 self .addRow (r )
10581060
You can’t perform that action at this time.
0 commit comments