Skip to content

Commit

Permalink
Add messages informing the user about the download status
Browse files Browse the repository at this point in the history
There is now some uptake before the actual download progress bar shows.
While this could be optimized a bit probably, it's good to inform the
user that there is actually something going on in the background.

Using plain print instead of logging, because progress bar prints anyway.
  • Loading branch information
teutoburg committed Jun 22, 2023
1 parent e8e434f commit ded0cc3
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions scopesim/server/database.py
Original file line number Diff line number Diff line change
Expand Up @@ -490,9 +490,13 @@ def download_packages(pkg_names: Union[Iterable[str], str],
"""
base_url = rc.__config__["!SIM.file.server_base_url"]

print("Gathering information from server ...")

all_versions = get_all_package_versions()
folder_dict = get_package_folders()

print("Connection successful, starting download ...")

if isinstance(pkg_names, str):
pkg_names = [pkg_names]

Expand Down

0 comments on commit ded0cc3

Please sign in to comment.