def init_journalist(is_admin=False):
 username = crypto_util.genrandomid()
 user_pw = crypto_util.genrandomid()
 user = db.Journalist(username, user_pw, is_admin)
 db.db_session.add(user)
 db.db_session.commit()
 return (user, user_pw)

def init_journalist ( is_admin = False ) : username = crypto_util . genrandomid ( ) user_pw = crypto_util . genrandomid ( ) user = db . Journalist ( username , user_pw , is_admin ) db . db_session . add ( user ) db . db_session . commit ( ) return ( user , user_pw )
initialize a journalist into the database .