예제 #1
0
def getAccountInfo():
	infos = userInfo.getUserInfo()
	print("Available accounts are below: ")
	for i in infos:
		print(i,end = "  ")
	user = input("\nWhich account you want to use? ")
	userinfo = infos[user]
	access_key = userinfo['access_key']
	secret_key = userinfo['secret_key']
	return (access_key, secret_key)
예제 #2
0
def spaceProjectView(space_id, space_type):
    space = session.query(SpaceProject).filter_by(id=space_id).one_or_none()
    creator = getUserInfo(space.user_id)
    if 'username' not in login_session:
        creator_state = False
        login_state = False
    elif creator.id != login_session['user_id']:
        login_state = True
        creator_state = False
    else:
        creator_state = True
        login_state = True
    return render_template('project_specific.html',
                           space=space,
                           creator_state=creator_state,
                           login_state=login_state)
예제 #3
0
def run():
    userInfoList = userInfo.getUserInfo()
    crawler.batch(userInfoList)