2nd commit
This commit is contained in:
@@ -80,23 +80,26 @@ def main():
|
||||
|
||||
log.info(table_name, operation)
|
||||
fn=f"fetch_{table_name}"
|
||||
list=["Attendance", "Journey_Plan", "Web_Logins"]
|
||||
|
||||
if table_type =="FACT" :
|
||||
|
||||
if table_name == "Attendance" :
|
||||
if table_name in list :
|
||||
df = globals()[fn](sql_engine, run_date)
|
||||
|
||||
else:
|
||||
df = globals()[fn](sql_engine, mids)
|
||||
|
||||
|
||||
|
||||
elif table_type =="BRIDGE" :
|
||||
|
||||
df = globals()[fn](sql_engine, run_date)
|
||||
|
||||
else:
|
||||
|
||||
df = globals()[fn](sql_engine)
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user