File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -114,7 +114,9 @@ async def worker_synchronize_cycles_from_pass(
114
114
pass_id = str (pass_cycle .ID ),
115
115
)
116
116
117
- updated_cycle = await Cycle .find_one (Cycle .name == pass_cycle .Name , Cycle .facility == facility .facility_name ).upsert (
117
+ updated_cycle = await Cycle .find_one (
118
+ Cycle .name == pass_cycle .Name , Cycle .facility == facility .facility_id
119
+ ).upsert (
118
120
Set (
119
121
{
120
122
Cycle .accepting_proposals : cycle .accepting_proposals ,
@@ -132,7 +134,9 @@ async def worker_synchronize_cycles_from_pass(
132
134
)
133
135
134
136
# Now let's update the list of proposals for this cycle
135
- proposals_list = await pass_service .get_proposals_allocated_by_cycle (cycle .name , facility = facility_name )
137
+ proposals_list = await pass_service .get_proposals_allocated_by_cycle (
138
+ cycle .name , facility = facility_name
139
+ )
136
140
for proposal in proposals_list :
137
141
await updated_cycle .update (
138
142
AddToSet ({Cycle .proposals : str (proposal .Proposal_ID )})
You can’t perform that action at this time.
0 commit comments