remove get_or_empty() function
This commit is contained in:
		
							parent
							
								
									b9abe99673
								
							
						
					
					
						commit
						5ac435b3f3
					
				| @ -5,15 +5,6 @@ from truthinquiry.ext.database.fsa import db | ||||
| 
 | ||||
| routes_admin = flask.Blueprint("admin", __name__) | ||||
| 
 | ||||
| def get_or_empty(obj, key): | ||||
|     if obj == None: | ||||
|         return "" | ||||
|     else: | ||||
|         return getattr(obj, key) | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| @routes_admin.route("/") | ||||
| def index(): | ||||
|     npcs_objs = db.session.query(Npc).all() | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user