diff options
author | Ismaël Bouya <ismael.bouya@normalesup.org> | 2018-07-25 20:30:18 +0200 |
---|---|---|
committer | Ismaël Bouya <ismael.bouya@normalesup.org> | 2018-07-25 20:30:18 +0200 |
commit | e1fd4859353b6968f2f4032740ff707046dbf794 (patch) | |
tree | 15d903ed7edb9154d1a58a7b7f01cddc15429e42 /main.py | |
parent | 311608f375c267c1498c5a98d8f6a895cf147dd9 (diff) | |
parent | 4b598ca6f91236c94da250282ac8c89c7d947ee2 (diff) | |
download | Trader-e1fd4859353b6968f2f4032740ff707046dbf794.tar.gz Trader-e1fd4859353b6968f2f4032740ff707046dbf794.tar.zst Trader-e1fd4859353b6968f2f4032740ff707046dbf794.zip |
Merge branch 'dev'v1.8.5
Diffstat (limited to 'main.py')
-rw-r--r-- | main.py | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -73,7 +73,7 @@ def fetch_markets(user): | |||
73 | if user is None: | 73 | if user is None: |
74 | cursor.execute("SELECT id,config,user_id FROM market_configs WHERE status='enabled'") | 74 | cursor.execute("SELECT id,config,user_id FROM market_configs WHERE status='enabled'") |
75 | else: | 75 | else: |
76 | cursor.execute("SELECT id,config,user_id FROM market_configs WHERE status='enabled' AND user_id = %s", user) | 76 | cursor.execute("SELECT id,config,user_id FROM market_configs WHERE status='enabled' AND user_id = %s", [user]) |
77 | 77 | ||
78 | for row in cursor: | 78 | for row in cursor: |
79 | yield row | 79 | yield row |