#NEWLINE# def get_spawn_id( self ) : #NEWLINE# #INDENT# rows = self . world . db . select ( 'max(id) as id from room_spawns where room=?' , [ self . dbid ] ) #NEWLINE# max_id = rows [ 0 ] [ 'id' ] #NEWLINE# if max_id : #NEWLINE# #INDENT# your_id = ( int ( max_id ) + 1 ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# your_id = 1 #NEWLINE# #UNINDENT# return str ( your_id )