mirror of
https://github.com/YunoHost/dynette.git
synced 2024-09-03 20:06:17 +02:00
[fix] psycopg2 is boring
This commit is contained in:
parent
af45f67cc5
commit
eb0628d3b7
1 changed files with 3 additions and 1 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue