Skip to content
Snippets Groups Projects
Commit ab3a7cd0 authored by rmit-s3661720-daniel-linford's avatar rmit-s3661720-daniel-linford
Browse files

Added self as perameters for a couple methods

parent 0a20f68f
No related branches found
No related tags found
No related merge requests found
......@@ -19,7 +19,7 @@ class ReportCreator:
# Connect to database for logging climate data
self.__connectToDatabase(databaseName)
def __connectToDatabase(dbfile):
def __connectToDatabase(self, dbfile):
# Connect to database, error if doesn't exist
try:
self.__database = sqlite3.connect(databaseName)
......@@ -27,7 +27,8 @@ class ReportCreator:
print(e)
# Builds status record depending on parameters
def __buildStatusRec(rowMaxTemp, rowMinTemp, rowMaxHumid, rowMinHumid):
def __buildStatusRec(self, rowMaxTemp, rowMinTemp,
rowMaxHumid, rowMinHumid):
# Initialize record string
string = ""
# Check max temperature, adding info if out of bounds
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment