Skip to content

Commit 10504e2

Browse files
Re-added loading to db
1 parent 9a718dd commit 10504e2

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

main.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
import os
33
from datalibrary.extract import DataLibrary, get_data
44
from datalibrary.transform import transform
5-
from datalibrary.load import save_to_excel
5+
from datalibrary.load import save_to_excel, load_to_db
66

77
load_dotenv() # dtake environment variables from .env.
88

@@ -25,6 +25,7 @@ def main():
2525
# Load processed data to DB
2626
processed_data = transform(dl_api_data)
2727
save_to_excel(processed_data)
28+
load_to_db(processed_data)
2829

2930
if __name__== "__main__":
3031
main()

0 commit comments

Comments
 (0)