def update_video_positions(removed_position, db):
    db.execute("UPDATE video SET position = position - 1 WHERE position > {removed_position}".format(
        removed_position=removed_position))
def update_video_positions(removed_position, db):
    db.execute("UPDATE video SET position = position - 1 WHERE position > %s", (removed_position,))
    db.execute("UPDATE video SET position = position - 1 WHERE position > {removed_position}".format(

        removed_position=removed_position))

    db.execute("UPDATE video SET position = position - 1 WHERE position > %s", (removed_position,))

{removed_po
ition}
.format(

=removed_position
%
, 
,