mirror of
				https://github.com/janeczku/calibre-web
				synced 2025-10-31 15:23:02 +00:00 
			
		
		
		
	Fix from tests
This commit is contained in:
		| @@ -95,10 +95,7 @@ def create_app(): | ||||
|     log.info('Starting Calibre Web...') | ||||
|     Principal(app) | ||||
|     lm.init_app(app) | ||||
|     if os.environ.get('FLASK_DEBUG'): | ||||
|     app.secret_key = os.getenv('SECRET_KEY', 'A0Zr98j/3yX R~XHH!jmN]LWX/,?RT') | ||||
|     else: | ||||
|         app.secret_key = os.getenv('SECRET_KEY', os.urandom(32)) | ||||
|  | ||||
|     web_server.init_app(app, config) | ||||
|     db.setup_db(config) | ||||
|   | ||||
| @@ -106,7 +106,7 @@ def get_sidebar_config(kwargs=None): | ||||
|     sidebar.append( | ||||
|         {"glyph": "glyphicon-trash", "text": _('Archived Books'), "link": 'web.books_list', "id": "archived", | ||||
|          "visibility": constants.SIDEBAR_ARCHIVED, 'public': (not g.user.is_anonymous), "page": "archived", | ||||
|          "show_text": _('Show archived books'), "config_show": True}) | ||||
|          "show_text": _('Show archived books'), "config_show": content}) | ||||
|     return sidebar | ||||
|  | ||||
|  | ||||
|   | ||||
							
								
								
									
										604
									
								
								test/Calibre-Web TestSummary.html
									
									
									
									
									
										
										
										Executable file → Normal file
									
								
							
							
						
						
									
										604
									
								
								test/Calibre-Web TestSummary.html
									
									
									
									
									
										
										
										Executable file → Normal file
									
								
							
										
											
												File diff suppressed because it is too large
												Load Diff
											
										
									
								
							
		Reference in New Issue
	
	Block a user
	 OzzieIsaacs
					OzzieIsaacs