Exemplo n.º 1
0
def insertData(users, channels):
	db.create_all()

	ch = Channel()
	usr = User()
	ch.getChannelInfo()
	usr.getUserInformation()
	ch.sendChannelsToDatabase(True) 
	usr.sendUsersToDatabase(True)
	db.session.commit()  
Exemplo n.º 2
0
def main():
	ch = Channel()
	usr = User()
	channels = ch.getChannelInfo()
	people = usr.getUserInformation()
	#messagesForAllChannels = []
	#for chan in channels:
	#	mes =  getMessageinfo(chan)
	#	messagesForAllChannels.append(mes)


	insertData(people, channels)