Spaces:
Runtime error
Runtime error
Commit ·
860712a
1
Parent(s): b00f841
added manually flags table
Browse files
app.py
CHANGED
|
@@ -28,9 +28,13 @@ dbCreds = DataWrapper(DB_CREDS_DATA)
|
|
| 28 |
dbEngine = DbEngine(dbCreds)
|
| 29 |
|
| 30 |
tablesAndCols = getAllTablesInfo(dbEngine, SCHEMA_NAME)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 31 |
metadataLayout = MetaDataLayout(schemaName=SCHEMA_NAME, allTablesAndCols=tablesAndCols)
|
| 32 |
-
print(tablesAndCols.keys(), "all tables.")
|
| 33 |
-
print(DEFAULT_TABLES_COLS.keys(), "default tables.")
|
| 34 |
metadataLayout.setSelection(DEFAULT_TABLES_COLS)
|
| 35 |
|
| 36 |
selectedTablesAndCols = metadataLayout.getSelectedTablesAndCols()
|
|
|
|
| 28 |
dbEngine = DbEngine(dbCreds)
|
| 29 |
|
| 30 |
tablesAndCols = getAllTablesInfo(dbEngine, SCHEMA_NAME)
|
| 31 |
+
##ToDo Resolve it and remove ittablesAndCols not getting flags table.
|
| 32 |
+
tablesAndCols['tbl_d_product_style_flags'] = ["product_id", "contemp_style_flag", "trad_style_flag", "country_style_flag", "trans_style_flag",
|
| 33 |
+
"mc_style_flag", "farm_style_flag", "wi_style_flag","iron_style_flag","crystal_style_flag","coast_style_flag","rustic_style_flag","ind_style_flag",
|
| 34 |
+
"glam_style_flag","ac_style_flag","kids_style_flag","asian_style_flag","tiff_style_flag","trop_style_flag","um_style_flag",
|
| 35 |
+
"sw_style_flag", "themed_style_flag", "west_style_flag", "style", "sku#"]
|
| 36 |
+
|
| 37 |
metadataLayout = MetaDataLayout(schemaName=SCHEMA_NAME, allTablesAndCols=tablesAndCols)
|
|
|
|
|
|
|
| 38 |
metadataLayout.setSelection(DEFAULT_TABLES_COLS)
|
| 39 |
|
| 40 |
selectedTablesAndCols = metadataLayout.getSelectedTablesAndCols()
|