Skip to content

Commit

Permalink
Change database export name
Browse files Browse the repository at this point in the history
  • Loading branch information
romainsacchi committed May 14, 2024
1 parent 5b98b13 commit ec59d70
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions premise/new_database.py
Original file line number Diff line number Diff line change
Expand Up @@ -919,7 +919,7 @@ def update(self, sectors: [str, list, None] = None) -> None:

def write_superstructure_db_to_brightway(
self,
name: str = f"super_db_{datetime.now().strftime('%d-%m-%Y %H-%M')} (v.{str(__version__)})",
name: str = f"super_db_{datetime.now().strftime('%d-%m-%Y')} (v.{str(__version__)})",
filepath: str = None,
file_format: str = "excel",
) -> None:
Expand Down Expand Up @@ -1156,7 +1156,7 @@ def write_db_to_olca(self, filepath: str = None):

def write_datapackage(
self,
name: str = f"datapackage_{datetime.now().strftime('%d-%m-%Y %H-%M')} (v.{str(__version__)})",
name: str = f"datapackage_{datetime.now().strftime('%d-%m-%Y')} (v.{str(__version__)})",
):
if not isinstance(name, str):
raise TypeError("`name` should be a string.")
Expand Down
2 changes: 1 addition & 1 deletion premise/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ def eidb_label(
name += f"_{ext_scenario['scenario']}"

# add date and time
name += f"_{datetime.now().strftime('%Y-%m-%d %H-%M')}"
name += f" {datetime.now().strftime('%Y-%m-%d')}"

return name

Expand Down

0 comments on commit ec59d70

Please sign in to comment.