Skip to content

Commit

Permalink
Merge branch 'record_builder_hotfix' into 'master'
Browse files Browse the repository at this point in the history
fix broken main method of record builder (not covered by tests)

See merge request nexuslims/NexusMicroscopyLIMS!106
  • Loading branch information
jat255 committed Apr 3, 2023
1 parent a13e7c7 commit 567c46e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions nexusLIMS/builder/record_builder.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@
import os
import shutil
import sys
import time
from datetime import datetime as dt
from datetime import timedelta as td
from importlib import import_module, util
Expand All @@ -61,6 +60,7 @@
from nexusLIMS.schemas import activity
from nexusLIMS.schemas.activity import AcquisitionActivity, cluster_filelist_mtimes
from nexusLIMS.utils import (
current_system_tz,
find_files_by_mtime,
gnu_find_files_by_mtime,
has_delay_passed,
Expand Down Expand Up @@ -755,5 +755,5 @@ def dry_run_file_find(s: Session) -> List[Path]:
# harvesters to speed things up
process_new_records(
dry_run=args.dry_run,
dt_from=dt.now(tz=time.tzname) - td(weeks=1),
dt_from=dt.now(tz=current_system_tz()) - td(weeks=1),
)

0 comments on commit 567c46e

Please sign in to comment.