box bug
This commit is contained in:
@@ -291,7 +291,7 @@ async def update_cookies(
|
||||
):
|
||||
try:
|
||||
# see if cookie file exists
|
||||
if not os.path.exists('cookies') and os.path.exists('cookies/tcg_cookies.json'):
|
||||
if not os.path.exists('cookies') or os.path.exists('cookies/tcg_cookies.json'):
|
||||
logger.info("Cannot find cookies")
|
||||
# Create cookies directory if it doesn't exist
|
||||
os.makedirs('cookies', exist_ok=True)
|
||||
|
@@ -94,6 +94,7 @@ class BoxService:
|
||||
num_cards_expected=create_box_data.num_cards_expected
|
||||
)
|
||||
self.db.add(product)
|
||||
self.db.flush()
|
||||
self.db.add(box)
|
||||
|
||||
return box, True
|
||||
|
Reference in New Issue
Block a user