Merge branch 'master' of https://bitbucket.org/yackob03/quay
|  | @ -508,6 +508,10 @@ def populate_database(): | |||
| if __name__ == '__main__': | ||||
|   log_level = getattr(logging, app.config['LOGGING_LEVEL']) | ||||
|   logging.basicConfig(level=log_level) | ||||
| 
 | ||||
|   if not isinstance(model.db.obj, SqliteDatabase): | ||||
|     raise RuntimeError('Attempted to initialize production database!') | ||||
| 
 | ||||
|   initialize_database() | ||||
| 
 | ||||
|   if app.config.get('POPULATE_DB_TEST_DATA', False): | ||||
|  |  | |||
| Before Width: | Height: | Size: 4.9 KiB After Width: | Height: | Size: 6.4 KiB | 
| Before Width: | Height: | Size: 4.6 KiB After Width: | Height: | Size: 5.6 KiB | 
| Before Width: | Height: | Size: 4.5 KiB After Width: | Height: | Size: 5.5 KiB | 
| Before Width: | Height: | Size: 6.6 KiB After Width: | Height: | Size: 8.1 KiB | 
| Before Width: | Height: | Size: 1.9 KiB After Width: | Height: | Size: 2 KiB | 
| Before Width: | Height: | Size: 2.8 KiB After Width: | Height: | Size: 1.5 KiB | 
| Before Width: | Height: | Size: 2 KiB After Width: | Height: | Size: 2.7 KiB | 
| Before Width: | Height: | Size: 2.5 KiB After Width: | Height: | Size: 3.2 KiB | 
| Before Width: | Height: | Size: 1.9 KiB After Width: | Height: | Size: 2 KiB | 
| Before Width: | Height: | Size: 34 KiB After Width: | Height: | Size: 34 KiB |