File tree Expand file tree Collapse file tree 1 file changed +11
-6
lines changed
backend/apps/github/models Expand file tree Collapse file tree 1 file changed +11
-6
lines changed Original file line number Diff line number Diff line change @@ -295,16 +295,21 @@ def _process_funding_data(self, gh_repository):
295
295
self .has_funding_yml = True
296
296
297
297
# Check funding policy compliance
298
- self .is_funding_policy_compliant = all (
299
- check_funding_policy_compliance (platform , target )
300
- for platform , targets in self .funding_yml .items ()
301
- for target in (targets if isinstance (targets , list ) else [targets ])
302
- if target
303
- )
298
+ self .is_funding_policy_compliant = self ._check_all_funding_compliance ()
304
299
except (AttributeError , GithubException ):
305
300
self .has_funding_yml = False
306
301
self .is_funding_policy_compliant = True
307
302
303
+ def _check_all_funding_compliance (self ) -> bool :
304
+ """Check if all funding targets are policy compliant."""
305
+ for platform , targets in self .funding_yml .items ():
306
+ # Normalize to list for consistent processing
307
+ target_list = targets if isinstance (targets , list ) else [targets ]
308
+ for target in target_list :
309
+ if target and not check_funding_policy_compliance (platform , target ):
310
+ return False
311
+ return True
312
+
308
313
@staticmethod
309
314
def update_data (
310
315
gh_repository ,
You can’t perform that action at this time.
0 commit comments