Skip to content

Commit

Permalink
fix[major] - fixed checks
Browse files Browse the repository at this point in the history
  • Loading branch information
OcelotWalrus committed May 2, 2024
1 parent 8b651d4 commit bd36e20
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions docs/ENGINE_FUNCTIONS.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ The [`data_handling.py`](https://github.com/Dungeons-of-Kathallion/Bane-Of-Wargs
| update_game_data() | `preferences`, `latest_game_data_version` | Redownloads the game vanilla data at '{bow-folder}/game/', from latest game data version |
| fsspec_download() | `github_file`, `destination_point`, `download_branch`, `download_repo`, `download_org` | Downloads a file from path `github_file` to destination path `destination_point`, from github account `donload_org`, repo `download_repo`, and branch/tag `download_branch` |
| temporary_git_file_download() | `selected_file`, `url` | Downloads a file from path `selected_file` from github url `url`, in a created temporary folder, and return the data of the file in a string |
| wget_download() | `url` | Downloads url `url` contents and returns it in a string |
| open_file() | `file_path` | Opens file from path `file_path` with default user terminal editor |

## dialog_handling.py
Expand Down
4 changes: 3 additions & 1 deletion source/data_handling.py
Original file line number Diff line number Diff line change
Expand Up @@ -494,8 +494,9 @@ def temporary_git_file_download(selected_file, url):

return file_text_data


def wget_download(url):
# Retreive file from given url to a temporary directory,
# Retrieve file from given url to a temporary directory,
# and the open it and return its content
global file_text_data

Expand Down Expand Up @@ -523,6 +524,7 @@ def wget_download(url):

return file_text_data


def open_file(file_path):
try:
editor = os.environ['EDITOR']
Expand Down

0 comments on commit bd36e20

Please sign in to comment.