from .tool.func import * def recent_app_submit_2(): with get_db_connect() as conn: curs = conn.cursor() div = '' curs.execute(db_change('select data from other where name = "requires_approval"')) requires_approval = curs.fetchall() if requires_approval and requires_approval[0][0] != 'on': div += get_lang(conn, 'approval_requirement_disabled') if flask.request.method == 'GET': curs.execute(db_change('select data from user_set where name = "application"')) db_data = curs.fetchall() if db_data: div += '' + \ get_lang(conn, 'all_register_num') + ' : ' + str(len(db_data)) + \ '
| ''' + get_lang(conn, 'id') + ''' | ''' + get_lang(conn, 'email') + ''' |
| ''' + get_lang(conn, 'approval_question') + ''' | ''' + get_lang(conn, 'answer') + ''' |