Commit 8bc313c
committed
Fix bug with repeated calls
Otherwise was adding every time since we reset stuff for `job` not `self` different.
Felt smoother to align with all being job object to help maintain context since the array `attached_directories` was already reset above
Prior output example:
Directory ID: 9693 Schema ID: 3665
{'attached_directories_list': [{'directory_id': 9693, 'selected': 'sync'}]}
Directory ID: 9695 Schema ID: 3666
{'attached_directories_list': [{'directory_id': 9693, 'selected': 'sync'}, {'directory_id': 9695, 'selected': 'sync'}]}
Directory ID: 9697 Schema ID: 3667
{'attached_directories_list': [{'directory_id': 9693, 'selected': 'sync'}, {'directory_id': 9695, 'selected': 'sync'}, {'directory_id': 9697, 'selected': 'sync'}]}
New example:
Directory ID: 58 Schema ID: 12
{'attached_directories_list': [{'directory_id': 58, 'selected': 'sync'}]}
Directory ID: 60 Schema ID: 13
{'attached_directories_list': [{'directory_id': 60, 'selected': 'sync'}]}
Directory ID: 62 Schema ID: 14
{'attached_directories_list': [{'directory_id': 62, 'selected': 'sync'}]}1 parent fa2a4fd commit 8bc313c
1 file changed
+5
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
201 | 201 | | |
202 | 202 | | |
203 | 203 | | |
204 | | - | |
| 204 | + | |
205 | 205 | | |
206 | 206 | | |
207 | | - | |
| 207 | + | |
208 | 208 | | |
209 | | - | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
210 | 212 | | |
211 | 213 | | |
212 | 214 | | |
| |||
0 commit comments