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 += load_lang('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 += '' + \ load_lang('all_register_num') + ' : ' + str(len(db_data)) + \ '
| ''' + load_lang('id') + ''' | ''' + load_lang('email') + ''' |
| ''' + load_lang('approval_question') + ''' | ''' + load_lang('answer') + ''' |