Skip to content

Commit

Permalink
12/29 update (Python library)
Browse files Browse the repository at this point in the history
- reverting changes from SQL base model saving
  • Loading branch information
MarkMichon7 committed Dec 30, 2021
1 parent b9d108a commit 0dcd5ec
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions bitglitter/config/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,11 @@ def create(cls, **kwargs):

def delete(self):
session.delete(self)
return session.commit()
session.commit()

def save(self):
if self.id == None:
session.add(self)
return session.commit()
session.add(self)
session.commit()


SQLBaseClass.metadata.create_all(engine)

0 comments on commit 0dcd5ec

Please sign in to comment.