Skip to content

Commit 01ce902

Browse files
author
Ghislain Fourny
committed
Fix bugs
1 parent 890ea0a commit 01ce902

2 files changed

Lines changed: 2 additions & 5 deletions

File tree

-28 Bytes
Binary file not shown.

src/jsoniqmagic/magic.py

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -39,11 +39,8 @@ def run(self, line, cell=None, timed=False):
3939
if len(capplusone) > rumble.getRumbleConf().getResultSizeCap():
4040
count = response.count()
4141
print("The query output %s items, which is too many to display. Displaying the first %s items:" % (count, rumble.getRumbleConf().getResultSizeCap()))
42-
for e in capplusone[:-1]:
43-
print(json.dumps(json.loads(e.serializeAsJSON()), indent=2))
44-
else:
45-
for e in response.json():
46-
print(json.dumps(e, indent=2))
42+
for e in capplusone[:rumble.getRumbleConf().getResultSizeCap()]:
43+
print(json.dumps(json.loads(e.serializeAsJSON()), indent=2))
4744
elif ("PUL" in response.availableOutputs()):
4845
print("The query output a Pending Update List.")
4946
else:

0 commit comments

Comments
 (0)