X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=main.py;h=ab523bec068fa4c00e08de16a1bf54ea7ef378ae;hb=5f721612111af5c56b5757cb2f21da5f2fa388bf;hp=1c65e5644ca6ebbe855813da68bbef18ba995b16;hpb=e45c64a5ace2637a9ff290a42cde89e2403ae53d;p=perso%2FImmae%2FProjets%2FCryptomonnaies%2FCryptoportfolio%2FTrader.git diff --git a/main.py b/main.py index 1c65e56..ab523be 100644 --- a/main.py +++ b/main.py @@ -73,7 +73,7 @@ def fetch_markets(user): if user is None: cursor.execute("SELECT id,config,user_id FROM market_configs WHERE status='enabled'") else: - cursor.execute("SELECT id,config,user_id FROM market_configs WHERE status='enabled' AND user_id = %s", user) + cursor.execute("SELECT id,config,user_id FROM market_configs WHERE status='enabled' AND user_id = %s", [user]) for row in cursor: yield row