mirror of
https://github.com/Steffo99/greed.git
synced 2024-11-24 23:04:18 +00:00
fix sqlalchemy exception
This commit is contained in:
parent
ce8ab7ad85
commit
730fa96e56
1 changed files with 0 additions and 3 deletions
|
@ -173,8 +173,6 @@ class Worker(threading.Thread):
|
|||
self.user = db.User(w=self)
|
||||
# Add the new record to the db
|
||||
self.session.add(self.user)
|
||||
# Flush the session to get an userid
|
||||
self.session.flush()
|
||||
# If the will be owner flag is set
|
||||
if will_be_owner:
|
||||
# Become owner
|
||||
|
@ -649,7 +647,6 @@ class Worker(threading.Thread):
|
|||
notes=notes if not isinstance(notes, CancelSignal) else "")
|
||||
# Add the record to the session and get an ID
|
||||
self.session.add(order)
|
||||
self.session.flush()
|
||||
# For each product added to the cart, create a new OrderItem
|
||||
for product in cart:
|
||||
# Create {quantity} new OrderItems
|
||||
|
|
Loading…
Reference in a new issue