user.py
def next_id(self):
		"""Get the max +1 id in the file"""
		self.create_files()
		f = open(User.user_fname, "r")
		contents = f.readlines()
		if len(contents) == 1:
			return 1
		return int(contents[-1].split('\t')[0]) + 1
Get the max +1 id in the file
Get the max +1 id in the file
Get the max + 1 id in the file
def next_id(self):
		self.create_files()
		f = open(User.user_fname, "r")
		contents = f.readlines()
		if len(contents) == 1:
			return 1
		return int(contents[-1].split('\t')[0]) + 1
def next_id ( self ) : self . create_files ( ) f = open ( User . user_fname , "r" ) contents = f . readlines ( ) if len ( contents ) == 1 : return 1 return int ( contents [ - 1 ] . split ( '\t' ) [ 0 ] ) + 1
Get the max +1 id in the file
Get the max + 1 id in the file
"""Get the max +1 id in the file"""
self