
import luigi

from tasks.config import rgd

from databases.rgd import helpers
from .organism import RgdOrganism


class Rgd(luigi.WrapperTask):
    def requires(self):
        for organism in helpers.gene_files(rgd().host):
            yield RgdOrganism(organism=organism)


import luigi

from databases.rgd import helpers
from .organism import RgdOrganism


class Rgd(luigi.WrapperTask):
    def requires(self):
        for organism in helpers.known_organisms():
            yield RgdOrganism(organism=organism)

Correct method to detect known organisms
Correct method to detect known organisms

  
  import luigi
- 
- from tasks.config import rgd
  
  from databases.rgd import helpers
  from .organism import RgdOrganism
  
  
  class Rgd(luigi.WrapperTask):
      def requires(self):
-         for organism in helpers.gene_files(rgd().host):
+         for organism in helpers.known_organisms():
              yield RgdOrganism(organism=organism)
  
Correct method to detect known organisms
## Code Before:

import luigi

from tasks.config import rgd

from databases.rgd import helpers
from .organism import RgdOrganism


class Rgd(luigi.WrapperTask):
    def requires(self):
        for organism in helpers.gene_files(rgd().host):
            yield RgdOrganism(organism=organism)

## Instruction:
Correct method to detect known organisms
## Code After:

import luigi

from databases.rgd import helpers
from .organism import RgdOrganism


class Rgd(luigi.WrapperTask):
    def requires(self):
        for organism in helpers.known_organisms():
            yield RgdOrganism(organism=organism)
