Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix sqlalchemy exception #114

Merged
merged 1 commit into from
May 4, 2021
Merged

fix sqlalchemy exception #114

merged 1 commit into from
May 4, 2021

Conversation

valentino-sm
Copy link
Contributor

@valentino-sm valentino-sm commented May 4, 2021

  1. No need to flush when session.autoflush==True
  2. When the second session (another user) comes into operation sqlalchemy throws an exception. In other words the bot was able to serve one user only.

To reproduce:

  1. Telegram1 -> start order. Pause during payment processing.
  2. Telegram2 -> /start (when new user) or start new order

@Steffo99 Steffo99 merged commit 730fa96 into Steffo99:master May 4, 2021
@Steffo99 Steffo99 self-requested a review May 4, 2021 12:46
@Steffo99 Steffo99 self-assigned this May 4, 2021
@Steffo99 Steffo99 added the feature A request for a new feature. label May 4, 2021
@Steffo99
Copy link
Owner

Steffo99 commented May 4, 2021

Thanks again for your contributions!

@valentino-sm valentino-sm deleted the patch-2 branch May 4, 2021 13:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature A request for a new feature.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants