Skip to content

Commit

Permalink
minor fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Elias committed Apr 11, 2023
1 parent 07e347c commit 983d500
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 4 deletions.
1 change: 0 additions & 1 deletion stellarisdashboard/dashboard_app/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,6 @@ def _bool_to_lowercase(py_bool: bool) -> str:
"type": t_int,
"value": current_values["threads"],
"min": 1,
"max": config.CPU_COUNT,
"name": "Number of threads (applies after restart)",
"description": "Number of threads for reading save files, updates apply after restarting the dashboard.",
},
Expand Down
3 changes: 0 additions & 3 deletions stellarisdashboard/parsing/rust_parser/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ fn parse_save_file_to_json(save_path: String) -> PyResult<String> {
#[pyfunction]
fn parse_save_file(py: Python, save_path: String) -> PyResult<PyObject> {
println!("Reading save {}", save_path);
let start = Instant::now();
let save_file = match load_save_content(save_path.as_str()) {
Ok(sf) => sf,
Err(msg) => {
Expand All @@ -44,8 +43,6 @@ fn parse_save_file(py: Python, save_path: String) -> PyResult<PyObject> {
match parse_save(&save_file) {
Ok(parsed_save) => {
let pyobject = parsed_save.gamestate.to_object(py);
let duration = start.elapsed();
println!("Parsed save contents in {:?}", duration);
Ok(pyobject)
}
Err(msg) => {
Expand Down

0 comments on commit 983d500

Please sign in to comment.