Ejemplo n.º 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)
Ejemplo n.º 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)
Ejemplo n.º 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()
Ejemplo n.º 4
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()