Skip to content

Commit

Permalink
Added a few commits where needed
Browse files Browse the repository at this point in the history
  • Loading branch information
ChazDazzle committed Oct 11, 2023
1 parent 8a58c05 commit 4dec83f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pyfpdb/Database.py
Original file line number Diff line number Diff line change
Expand Up @@ -878,11 +878,13 @@ def connect(self, backend=None, host=None, database=None,
self.cursor = self.connection.cursor()
self.cursor.execute(self.sql.query['set tx level'])
self.check_version(database=database, create=create)
self.commit()

def get_sites(self):
self.cursor.execute("SELECT name,id FROM Sites")
sites = self.cursor.fetchall()
self.config.set_site_ids(sites)
self.commit()

def check_version(self, database, create):
self.wrongDbVersion = False
Expand Down

0 comments on commit 4dec83f

Please sign in to comment.