This commit is contained in:
Generated
+1
-1
@@ -17,7 +17,7 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "airlock_libs"
|
||||
version = "1.0.2"
|
||||
version = "1.0.3"
|
||||
dependencies = [
|
||||
"chrono",
|
||||
"indicatif",
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
[package]
|
||||
name = "airlock_libs"
|
||||
version = "1.0.2"
|
||||
version = "1.0.3"
|
||||
edition = "2024"
|
||||
|
||||
[lib]
|
||||
|
||||
@@ -4,7 +4,7 @@ build-backend = "maturin"
|
||||
|
||||
[project]
|
||||
name = "airlock_libs"
|
||||
version = "1.0.2"
|
||||
version = "1.0.3"
|
||||
description = "Airlock Digital API Wrapper"
|
||||
readme = "README.md"
|
||||
license = { text = "AGPL-3.0-only" }
|
||||
|
||||
@@ -95,6 +95,7 @@ pub fn pull_policy_exec_histories(
|
||||
progress_bar.enable_steady_tick(std::time::Duration::from_millis(100));
|
||||
let client = build_client(py, &py_self);
|
||||
let api: Py<PyAny> = py_self;
|
||||
let cutoff = Local::now().naive_local() - Duration::days(days);
|
||||
loop {
|
||||
let execution_histories = history_logging(
|
||||
py,
|
||||
@@ -152,7 +153,6 @@ pub fn pull_policy_exec_histories(
|
||||
Ok(date) => date,
|
||||
Err(_) => continue,
|
||||
};
|
||||
let cutoff = Local::now().naive_local() - Duration::days(days);
|
||||
if history_date >= cutoff.into() {
|
||||
let key = (
|
||||
executions.sha256.clone(),
|
||||
|
||||
Reference in New Issue
Block a user