pylantir 0.1.1__py3-none-any.whl → 0.1.3__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- pylantir/__init__.py +1 -1
- pylantir/redcap_to_db.py +3 -3
- {pylantir-0.1.1.dist-info → pylantir-0.1.3.dist-info}/METADATA +1 -1
- {pylantir-0.1.1.dist-info → pylantir-0.1.3.dist-info}/RECORD +7 -7
- {pylantir-0.1.1.dist-info → pylantir-0.1.3.dist-info}/WHEEL +0 -0
- {pylantir-0.1.1.dist-info → pylantir-0.1.3.dist-info}/entry_points.txt +0 -0
- {pylantir-0.1.1.dist-info → pylantir-0.1.3.dist-info}/licenses/LICENSE +0 -0
pylantir/__init__.py
CHANGED
pylantir/redcap_to_db.py
CHANGED
|
@@ -192,7 +192,7 @@ def sync_redcap_to_db(
|
|
|
192
192
|
# existing_entry.study_description = record.get("study_description")
|
|
193
193
|
# existing_entry.station_name = record.get("station_name")
|
|
194
194
|
else:
|
|
195
|
-
logging.
|
|
195
|
+
logging.info(f"Adding new worklist entry for PatientID {PatientID} scheduled for {record.get('mri_date')} at {record.get('mri_time')}")
|
|
196
196
|
new_entry = WorklistItem(
|
|
197
197
|
study_instance_uid=generate_instance_uid(),
|
|
198
198
|
patient_name=PatientName,
|
|
@@ -241,7 +241,7 @@ def sync_redcap_to_db_repeatedly(
|
|
|
241
241
|
|
|
242
242
|
# last_sync_date = datetime.now().date()
|
|
243
243
|
last_sync_date = datetime.now().date() - timedelta(days=1)
|
|
244
|
-
interval_sync = interval +
|
|
244
|
+
interval_sync = interval + 300 # add 5 minutes to the interval to overlap with the previous sync and avoid missing data
|
|
245
245
|
|
|
246
246
|
while not STOP_EVENT.is_set():
|
|
247
247
|
# === 1) BASELINE: set defaults for flags and wait-time each iteration ===
|
|
@@ -271,7 +271,7 @@ def sync_redcap_to_db_repeatedly(
|
|
|
271
271
|
logging.info(f"Using extended interval: {extended_interval}, {interval} seconds until next sync.")
|
|
272
272
|
else:
|
|
273
273
|
# Either not first run, or last_sync_date is None (this is first-ever run)
|
|
274
|
-
logging.info("Using default interval {interval} seconds.")
|
|
274
|
+
logging.info(f"Using default interval {interval} seconds.")
|
|
275
275
|
|
|
276
276
|
# --- CALL THE SYNC FUNCTION INSIDE A TRY/EXCEPT ---
|
|
277
277
|
logging.debug(f"Syncing REDCap to DB for site {site_id} at {now_time}.")
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
pylantir/__init__.py,sha256=
|
|
1
|
+
pylantir/__init__.py,sha256=TGv-yvPCGOMmwppvQkaAlcSt-InvOfdq0v0xYV0S8fg,374
|
|
2
2
|
pylantir/db_setup.py,sha256=KTILsRrH7V5EaPqbCfOYYECM9mUB-AvOdjqjMM2H1n0,1333
|
|
3
3
|
pylantir/models.py,sha256=bKgI0EN1VSYanPTOvEhEY2Zzqa0gDYLpVnE_KNQ6PEc,1780
|
|
4
4
|
pylantir/mwl_server.py,sha256=GMJDcK0u_KM3oa6UqQ87NxMVye2pvG2cdkcI9k_iExg,10338
|
|
5
5
|
pylantir/populate_db.py,sha256=KIbkVA-EAuTlDArXMFOHkjMmVfjlsTApj7S1wpUu1bM,2207
|
|
6
|
-
pylantir/redcap_to_db.py,sha256=
|
|
6
|
+
pylantir/redcap_to_db.py,sha256=0LG8iJkidKFoGa0p5ruPpxj63lqnDt130MrZnHpkHXU,13508
|
|
7
7
|
pylantir/cli/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
8
8
|
pylantir/cli/run.py,sha256=ZE-CIBTn3vp4APqs0U7wKW70RFM4ph-AuKkOrGbruu8,10321
|
|
9
9
|
pylantir/config/mwl_config.json,sha256=v14HXu1ft1mwFyjsowHe3H1LXZGD6sAoYuGb9_4w2kA,1008
|
|
10
|
-
pylantir-0.1.
|
|
11
|
-
pylantir-0.1.
|
|
12
|
-
pylantir-0.1.
|
|
13
|
-
pylantir-0.1.
|
|
14
|
-
pylantir-0.1.
|
|
10
|
+
pylantir-0.1.3.dist-info/entry_points.txt,sha256=vxaxvfGppLqRt9_4sqNDdP6b2jlgpcHIwP7UQfrM1T0,50
|
|
11
|
+
pylantir-0.1.3.dist-info/licenses/LICENSE,sha256=ws_MuBL-SCEBqPBFl9_FqZkaaydIJmxHrJG2parhU4M,1141
|
|
12
|
+
pylantir-0.1.3.dist-info/WHEEL,sha256=G2gURzTEtmeR8nrdXUJfNiB3VYVxigPQ-bEQujpNiNs,82
|
|
13
|
+
pylantir-0.1.3.dist-info/METADATA,sha256=PIuZiLf-idLkLvL1PcevA44fHsheFcQ9upG8dqMsyuE,7585
|
|
14
|
+
pylantir-0.1.3.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|