from celery import Celery
import scrapeData.NBA_Game_Updater as NBA_Game_Updater
from scrapeData import NBA_Game_Updater
from fixData import teamElo, meanSD

app = Celery('APItasks', broker='amqp://cQ521EMD:Hz18a0imJlL_hpQ1hqVRz14pXdnp0AOs@tired-marjoram-53.bigwig.lshift.net:11093/MXqpFHpKVWou')

@app.task
def get_data_for_one_season(year):
    NBA_Game_Updater.main(year)
    return "Successfully grabbed all games for the " + str(year) + " season."
    teamElo.generate_Elo()
    meanSD.calculateMeanAndSDs()

@app.task
def get_data_for_all_seasons():
    years=[
    '2003',
    '2004',
    '2005',
    '2006',
    '2007',
    '2008',
    '2009',
    '2010',
    '2011',
    '2012',
    '2013',
    '2014',
    '2015']

    for year in years:
        NBA_Game_Updater.main(year)
    generate_Elo()
    meanSD.calculateMeanAndSDs()
    return "Successfully grabbed all game for all seasons!"

@app.task
def generate_Elo_For_New_Games():
    teamElo.generateElo()
    return "Generating ELO."
fec04bfa90719a48c729bd46cab76087270a16ae
<mask token>


@app.task
def get_data_for_all_seasons():
    years = ['2003', '2004', '2005', '2006', '2007', '2008', '2009', '2010',
        '2011', '2012', '2013', '2014', '2015']
    for year in years:
        NBA_Game_Updater.main(year)
    generate_Elo()
    meanSD.calculateMeanAndSDs()
    return 'Successfully grabbed all game for all seasons!'


@app.task
def generate_Elo_For_New_Games():
    teamElo.generateElo()
    return 'Generating ELO.'

<mask token>


@app.task
def get_data_for_one_season(year):
    NBA_Game_Updater.main(year)
    return 'Successfully grabbed all games for the ' + str(year) + ' season.'
    teamElo.generate_Elo()
    meanSD.calculateMeanAndSDs()


@app.task
def get_data_for_all_seasons():
    years = ['2003', '2004', '2005', '2006', '2007', '2008', '2009', '2010',
        '2011', '2012', '2013', '2014', '2015']
    for year in years:
        NBA_Game_Updater.main(year)
    generate_Elo()
    meanSD.calculateMeanAndSDs()
    return 'Successfully grabbed all game for all seasons!'


@app.task
def generate_Elo_For_New_Games():
    teamElo.generateElo()
    return 'Generating ELO.'

<mask token>
app = Celery('APItasks', broker=
    'amqp://cQ521EMD:Hz18a0imJlL_hpQ1hqVRz14pXdnp0AOs@tired-marjoram-53.bigwig.lshift.net:11093/MXqpFHpKVWou'
    )


@app.task
def get_data_for_one_season(year):
    NBA_Game_Updater.main(year)
    return 'Successfully grabbed all games for the ' + str(year) + ' season.'
    teamElo.generate_Elo()
    meanSD.calculateMeanAndSDs()


@app.task
def get_data_for_all_seasons():
    years = ['2003', '2004', '2005', '2006', '2007', '2008', '2009', '2010',
        '2011', '2012', '2013', '2014', '2015']
    for year in years:
        NBA_Game_Updater.main(year)
    generate_Elo()
    meanSD.calculateMeanAndSDs()
    return 'Successfully grabbed all game for all seasons!'


@app.task
def generate_Elo_For_New_Games():
    teamElo.generateElo()
    return 'Generating ELO.'

from celery import Celery
import scrapeData.NBA_Game_Updater as NBA_Game_Updater
from scrapeData import NBA_Game_Updater
from fixData import teamElo, meanSD
app = Celery('APItasks', broker=
    'amqp://cQ521EMD:Hz18a0imJlL_hpQ1hqVRz14pXdnp0AOs@tired-marjoram-53.bigwig.lshift.net:11093/MXqpFHpKVWou'
    )


@app.task
def get_data_for_one_season(year):
    NBA_Game_Updater.main(year)
    return 'Successfully grabbed all games for the ' + str(year) + ' season.'
    teamElo.generate_Elo()
    meanSD.calculateMeanAndSDs()


@app.task
def get_data_for_all_seasons():
    years = ['2003', '2004', '2005', '2006', '2007', '2008', '2009', '2010',
        '2011', '2012', '2013', '2014', '2015']
    for year in years:
        NBA_Game_Updater.main(year)
    generate_Elo()
    meanSD.calculateMeanAndSDs()
    return 'Successfully grabbed all game for all seasons!'


@app.task
def generate_Elo_For_New_Games():
    teamElo.generateElo()
    return 'Generating ELO.'

from celery import Celery
import scrapeData.NBA_Game_Updater as NBA_Game_Updater
from scrapeData import NBA_Game_Updater
from fixData import teamElo, meanSD

app = Celery('APItasks', broker='amqp://cQ521EMD:Hz18a0imJlL_hpQ1hqVRz14pXdnp0AOs@tired-marjoram-53.bigwig.lshift.net:11093/MXqpFHpKVWou')

@app.task
def get_data_for_one_season(year):
    NBA_Game_Updater.main(year)
    return "Successfully grabbed all games for the " + str(year) + " season."
    teamElo.generate_Elo()
    meanSD.calculateMeanAndSDs()

@app.task
def get_data_for_all_seasons():
    years=[
    '2003',
    '2004',
    '2005',
    '2006',
    '2007',
    '2008',
    '2009',
    '2010',
    '2011',
    '2012',
    '2013',
    '2014',
    '2015']

    for year in years:
        NBA_Game_Updater.main(year)
    generate_Elo()
    meanSD.calculateMeanAndSDs()
    return "Successfully grabbed all game for all seasons!"

@app.task
def generate_Elo_For_New_Games():
    teamElo.generateElo()
    return "Generating ELO."