Skip to content

Commit

Permalink
Merge pull request #54 from prio-data/status_message_pagination
Browse files Browse the repository at this point in the history
fixed pagination of queryset-fetch status messages
  • Loading branch information
jimdale authored Mar 15, 2024
2 parents c47ec7d + d028e29 commit 17bfbd6
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "viewser"
version = "6.0.3"
version = "6.0.4"
description = "The Views 3 CLI tool"
authors = ["peder2911 <[email protected]>"]
readme = "README.md"
Expand Down
11 changes: 7 additions & 4 deletions viewser/commands/queryset/operations.py
Original file line number Diff line number Diff line change
Expand Up @@ -170,13 +170,16 @@ def _fetch(

try:
data = pd.read_parquet(io.BytesIO(data.value.content))
clear_output(wait=True)
print(f'{retries+1}: Queryset data read successfully', end="\r")
# clear_output(wait=True)
print(f'{retries+1}: Queryset {name} read successfully')
succeeded = True
except:
message = data.value.content.decode()
clear_output(wait=True)
print(f'{retries+1}: {message}', end="\r")
if retries == 0:
print(f'{retries + 1}: {message}')
else:
clear_output(wait=True)
print(f'{retries+1}: {message}', end="\r")
if 'failed' in message:
failed = True
data = message
Expand Down

0 comments on commit 17bfbd6

Please sign in to comment.