Steffo99 / greed

Customizable, multilanguage Telegram shop bot with Payments support
GNU Affero General Public License v3.0
527 stars 261 forks source link

fix sqlalchemy exception #114

Closed valentino-sm closed 3 years ago

valentino-sm commented 3 years ago
  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 commented 3 years ago

Thanks again for your contributions!