[fix] psycopg2 is boring

This commit is contained in:
Laurent Peuch 2018-04-18 03:49:53 +02:00
parent af45f67cc5
commit eb0628d3b7

View file

@ -49,7 +49,9 @@ with psycopg2.connect(postgresql_dsn) as postgresql_connection:
# end # end
# consume all available tasks at once to merge them and avoir doing # consume all available tasks at once to merge them and avoir doing
# useless jobs # useless jobs
for task in psql.execute("SELECT task FROM jobqueues ORDER BY id ASC;"): psql.execute("SELECT task FROM jobqueues ORDER BY id ASC;")
for task in psql.fetchall():
task = task[0] task = task[0]
if task == "conf_rewrite": if task == "conf_rewrite":
need_rewrite = True need_rewrite = True