Skip to content

Commit

Permalink
worksheet: fix minor lint formatting issue
Browse files Browse the repository at this point in the history
  • Loading branch information
jmcnamara committed Feb 3, 2024
1 parent e53e190 commit cedf448
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions xlsxwriter/worksheet.py
Original file line number Diff line number Diff line change
Expand Up @@ -2986,13 +2986,13 @@ def conditional_format(
elif options["criteria"] == "tomorrow":
options["formula"] = "FLOOR(%s,1)=TODAY()+1" % start_cell

# fmt: off
elif options["criteria"] == "last7Days":
options[
"formula"
] = "AND(TODAY()-FLOOR(%s,1)<=6,FLOOR(%s,1)<=TODAY())" % (
start_cell,
start_cell,
options["formula"] = (
"AND(TODAY()-FLOOR(%s,1)<=6,FLOOR(%s,1)<=TODAY())"
% (start_cell, start_cell)
)
# fmt: on

elif options["criteria"] == "lastWeek":
options["formula"] = (
Expand Down Expand Up @@ -3022,13 +3022,13 @@ def conditional_format(
% (start_cell, start_cell, start_cell)
)

# fmt: off
elif options["criteria"] == "thisMonth":
options[
"formula"
] = "AND(MONTH(%s)=MONTH(TODAY()),YEAR(%s)=YEAR(TODAY()))" % (
start_cell,
start_cell,
options["formula"] = (
"AND(MONTH(%s)=MONTH(TODAY()),YEAR(%s)=YEAR(TODAY()))"
% (start_cell, start_cell)
)
# fmt: on

elif options["criteria"] == "nextMonth":
options["formula"] = (
Expand Down

0 comments on commit cedf448

Please sign in to comment.