Skip to content

Commit

Permalink
Merge branch 'add_senses_data' into align_bestiary_api_with_shop
Browse files Browse the repository at this point in the history
  • Loading branch information
RakuJa committed Dec 7, 2024
2 parents fdab4ea + d22497d commit 42ee5c6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Makefile.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ args = ["clean"]

[tasks.prebuild]
command = "python3"
args = ["setup.py", "--db_version", "2.3.0"]
args = ["setup.py", "--db_version", "2.4.0"]

[tasks.format]
install_crate = "rustfmt"
Expand Down
6 changes: 3 additions & 3 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,16 +25,16 @@ def handle_command_line_arguments() -> Optional[str]:
if currentArgument in ("-h", "--help"):
print("This script downloads or creates necessary file to build BYBE. \n"
"Should be executed the first time the project is built in the machine or when resetting the database \n"
"Pass the --db_version or -v argument to input a specific BYBE-DB version to download (>= 2.3.0)")
"Pass the --db_version or -d argument to input a specific BYBE-DB version to download (>= 2.3.0)")
elif currentArgument in ("-d", "--db_version"):
return currentValue
except getopt.error:
pass

def main():
# Check if the file already exists or needs downloading
db_version: str = handle_command_line_arguments() or "2.3.0"
print(db_version)
db_version: str = handle_command_line_arguments()
print(f"Using DB version: {db_version}") or "2.3.0" # Oldest DB version publicly available
remote_url: str = f"https://github.com/RakuJa/BYBE-DB/releases/download/v{db_version}/database.db"
destination_file: str = "database.db"
if not os.path.exists(destination_file):
Expand Down

0 comments on commit 42ee5c6

Please sign in to comment.