def get_by_wiki(citiao):
        '''
        Get the wiki record by title.
        '''
        q_res = TabWiki.select().where(TabWiki.title == citiao)
        the_count = q_res.count()
        if the_count == 0 or the_count > 1:
            return None
        else:
            MWiki.update_view_count(citiao)
            return q_res.get()
def get_by_wiki ( citiao ) : q_res = TabWiki . select ( ) . where ( TabWiki . title == citiao ) the_count = q_res . count ( ) if the_count == 0 or the_count > 1 : return None else : MWiki . update_view_count ( citiao ) return q_res . get ( )
Get the wiki record by title.