Przeglądaj źródła

cmd_dispatcher: fixed iteration through the list of setid parameters

Daniel-Constantin Mierla 8 lat temu
rodzic
commit
68f7a976d9
1 zmienionych plików z 1 dodań i 3 usunięć
  1. 1 3
      kamcli/commands/cmd_dispatcher.py

+ 1 - 3
kamcli/commands/cmd_dispatcher.py

@@ -1,6 +1,4 @@
 import click
-import hashlib
-import json
 from sqlalchemy import create_engine
 from kamcli.ioutils import ioutils_dbres_print
 from kamcli.cli import pass_context
@@ -90,7 +88,7 @@ def dispatcher_showdb(ctx, oformat, ostyle, setid):
     else:
         for s in setid:
             ctx.vlog('Showing dispatcher records for set id')
-            res = e.execute('select * from dispatcher where setid=%d', setid)
+            res = e.execute('select * from dispatcher where setid=%d', s)
             ioutils_dbres_print(ctx, oformat, ostyle, res)