from .tool.func import * async def recent_app_submit(): 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 += await get_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 += '' + \ await get_lang('all_register_num') + ' : ' + str(len(db_data)) + \ '
| ''' + await get_lang('id') + ''' | ''' + await get_lang('email') + ''' |
| ''' + await get_lang('approval_question') + ''' | ''' + await get_lang('answer') + ''' |