Skip to content

Commit

Permalink
Add facility to sync service
Browse files Browse the repository at this point in the history
  • Loading branch information
stuartcampbell committed Dec 20, 2024
1 parent ff45343 commit e02fa09
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/nsls2api/services/sync_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -338,7 +338,7 @@ async def worker_synchronize_proposals_for_cycle_from_pass(cycle: str,

commissioning_proposals: list[
PassProposal
] = await pass_service.get_commissioning_proposals_by_year(cycle_year)
] = await pass_service.get_commissioning_proposals_by_year(cycle_year, facility_name=facility_name)
logger.info(
f"Synchronizing {len(proposals)} commissioning proposals for the year {cycle_year}."
)
Expand All @@ -347,7 +347,7 @@ async def worker_synchronize_proposals_for_cycle_from_pass(cycle: str,
await synchronize_proposal_from_pass(str(proposal.Proposal_ID))

# Now update the cycle information for each proposal
await update_proposals_with_cycle(cycle)
await update_proposals_with_cycle(cycle, facility_name=facility_name)

time_taken = datetime.datetime.now() - start_time
logger.info(
Expand Down

0 comments on commit e02fa09

Please sign in to comment.