예제 #1
0
def update_sections():
    # Fetch data from OpenData API and cache to files.
    rmc_crawler.get_opendata_sections()

    # Import from files to DB.
    rmc_processor.import_opendata_sections()

    # Send push notifications about seat openings.
    num_sent = m.GcmCourseAlert.send_eligible_alerts()
    num_expired = m.GcmCourseAlert.delete_expired()
    print 'Sent %s push notifications and expired %s' % (num_sent, num_expired)
예제 #2
0
def update_sections():
    # Fetch data from OpenData API and cache to files.
    rmc_crawler.get_opendata_sections()

    # Import from files to DB.
    rmc_processor.import_opendata_sections()

    # Send push notifications about seat openings.
    num_sent = m.GcmCourseAlert.send_eligible_alerts()
    num_expired = m.GcmCourseAlert.delete_expired()
    print 'Sent %s push notifications and expired %s' % (num_sent, num_expired)
예제 #3
0
def update_sections():
    # Fetch data from OpenData API and cache to files.
    rmc_crawler.get_opendata_sections()

    # Import from files to DB.
    rmc_processor.import_opendata_sections()
예제 #4
0
파일: aggregator.py 프로젝트: Kapin/rmc
def update_sections():
    # Fetch data from OpenData API and cache to files.
    rmc_crawler.get_opendata_sections()

    # Import from files to DB.
    rmc_processor.import_opendata_sections()