Skip to content

Commit

Permalink
NOMERGE: Auto-mark groups starting with 'Ignore:' as do-not-download
Browse files Browse the repository at this point in the history
  • Loading branch information
davidfstr committed Feb 10, 2024
1 parent 04865cb commit bb5b305
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/crystal/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -764,7 +764,11 @@ def _load(self,
group_2_source = {}
for (index, (name, url_pattern, source_type, source_id, id)) in enumerate(c.execute(
'select name, url_pattern, source_type, source_id, id from resource_group')):
group = ResourceGroup(self, name, url_pattern, source=Ellipsis, _id=id)
group = ResourceGroup(
self, name, url_pattern, source=Ellipsis,
do_not_download=name.startswith('Ignore:'),
_id=id,
)
group_2_source[group] = (source_type, source_id)
for (group, (source_type, source_id)) in group_2_source.items():
if source_type is None:
Expand Down

0 comments on commit bb5b305

Please sign in to comment.