push latest changes
This commit is contained in:
		
							parent
							
								
									7523a19d1f
								
							
						
					
					
						commit
						cb2b5c2c2b
					
				
					 63 changed files with 3158 additions and 1552 deletions
				
			
		
							
								
								
									
										16
									
								
								views/home/__init__.py
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										16
									
								
								views/home/__init__.py
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,16 @@ | |||
| from flask import Blueprint, render_template | ||||
| from flask_login import current_user | ||||
| 
 | ||||
| import stats_collect | ||||
| 
 | ||||
| home_page = Blueprint("home", __name__) | ||||
| 
 | ||||
| 
 | ||||
| @home_page.route("/") | ||||
| def index(): | ||||
|     stats = stats_collect.Stats() | ||||
|     if not (current_user.is_authenticated and current_user.is_admin): | ||||
|         stats["images"] = [ | ||||
|             img for img in stats["images"] if img[0] != "Torrents"] | ||||
| 
 | ||||
|     return render_template("index.html", fluid=True, data=stats) | ||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue