コード例 #1
0
    def requires(self):
        yield QueryDb(  # daily entries
            query='''
                SELECT DATE(datetime), SUM(unique_count) AS entries
                FROM gomus_daily_entry
                WHERE datetime > date('2017-01-01')
                GROUP BY DATE(datetime)
                ORDER BY DATE(datetime)
            '''

            # values before 2017 are not representative as there were
            # two exhibitions in parallel and very high visitor numbers
        )
        yield ExhibitionPopularity()
        yield MuseumFacts()
コード例 #2
0
    def requires(self):

        return MuseumFacts()
コード例 #3
0
    def setUp(self):
        super().setUp()

        self.task = FetchAppstoreReviews()
        self.run_task(MuseumFacts())
        self.task.get_country_codes = lambda: FAKE_COUNTRY_CODES
コード例 #4
0
    def requires(self):

        yield super().requires()
        yield MuseumFacts()
コード例 #5
0
 def requires(self):
     yield MuseumFacts()
     yield FetchTwitter()