Skip to content

Commit

Permalink
Allows reading of xslsx file sin datapackages.
Browse files Browse the repository at this point in the history
  • Loading branch information
romainsacchi committed Oct 12, 2023
1 parent 9c7c1b3 commit 0021089
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion premise/inventory_imports.py
Original file line number Diff line number Diff line change
Expand Up @@ -817,7 +817,9 @@ def __init__(self, database, version_in, version_out, path, system_model):
super().__init__(database, version_in, version_out, path, system_model)

def load_inventory(self, path):
if "http" in path:
path = Path(path)
# check if "http" in path
if "http" in str(path):
# online file
# we need to save it locally first
response = requests.get(path)
Expand Down

0 comments on commit 0021089

Please sign in to comment.