This commit is contained in:
+2
-2
@@ -835,8 +835,8 @@ def api_mark_all_posts_for_publication():
|
||||
with db.conn.cursor() as cursor:
|
||||
cursor.execute("""
|
||||
UPDATE posts
|
||||
SET marked_to_publication = 1
|
||||
WHERE marked_to_publication = 0
|
||||
SET marked_for_publication = 1
|
||||
WHERE marked_for_publication = 0
|
||||
""")
|
||||
count = cursor.rowcount
|
||||
db.conn.commit()
|
||||
|
||||
Reference in New Issue
Block a user