Example #1
0
def initialize_database(config):
    with dbapi2.connect(config) as connection:
        cursor = connection.cursor()
        profile.initialize_profiles(config)
        Interaction_c.initialize_interaction(config)
        connection.commit()
        return 'tables are created <a href="http://itucsdb1601.mybluemix.net">Home</a>'
Example #2
0
def checkM3():
    return Interaction_c.check3(app.config['dsn'])
Example #3
0
def insertM_blocked():
    Interaction_c.follow_blocked(app.config['dsn'])
    return render_template('blocked.html')
Example #4
0
def checkM2():
    return Interaction_c.check2(app.config['dsn'])
Example #5
0
def insertM_following():
    Interaction_c.follow_following(app.config['dsn'])
    return render_template('following.html')
Example #6
0
def searchM_blocked():
    return Interaction_c.search_blocked(app.config['dsn'])
Example #7
0
def insertM():
    Interaction_c.follow(app.config['dsn'])
    return render_template('followers.html')
Example #8
0
def searchM_following():
    return Interaction_c.search_following(app.config['dsn'])
Example #9
0
def searchM():
    return Interaction_c.search(app.config['dsn'])
Example #10
0
def updateM_blocked():
    return Interaction_c.update_blocked(app.config['dsn'])
Example #11
0
def updateM_following():
    return Interaction_c.update_following(app.config['dsn'])
Example #12
0
def updateM():
    return Interaction_c.update(app.config['dsn'])
Example #13
0
def find_following():
    return Interaction_c.find(app.config['dsn'])