Skip to content

Commit

Permalink
small changes to email_service
Browse files Browse the repository at this point in the history
  • Loading branch information
HighestAuto committed Aug 22, 2024
1 parent 1c7d149 commit 9c54ab1
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions email_service/email_lambda.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
import pandas as pd
from psycopg2.extensions import connection
from psycopg2 import connect
from psycopg2.extras import RealDictCursor, execute
from psycopg2.extras import RealDictCursor
import datetime

from pipeline.common import DataProcessor
Expand All @@ -36,7 +36,7 @@ def __init__(self) -> None:
"""
self.logger = logger

def get_user_data(self, conn, data):
def get_user_data(self, conn):
"""
Loads the data into an RDS database
"""
Expand Down Expand Up @@ -68,3 +68,10 @@ def get_connection(self) -> connection:
)
connecting.autocommit = True
return connecting


if __name__ == "__main__":
db = DatabaseConnection()
conn = db.get_connection()
load = Load()
print(load.get_user_data(conn))

0 comments on commit 9c54ab1

Please sign in to comment.