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 b58a804
Showing 1 changed file with 12 additions and 10 deletions.
22 changes: 12 additions & 10 deletions xlsxwriter/worksheet.py
Original file line number Diff line number Diff line change
Expand Up @@ -2987,11 +2987,12 @@ def conditional_format(
options["formula"] = "FLOOR(%s,1)=TODAY()+1" % start_cell

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,
)
)

elif options["criteria"] == "lastWeek":
Expand Down Expand Up @@ -3023,11 +3024,12 @@ def conditional_format(
)

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,
)
)

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

0 comments on commit b58a804

Please sign in to comment.