Skip to content

Commit

Permalink
calendar: Fix SyntaxWarning: "is not" with a literal.
Browse files Browse the repository at this point in the history
  • Loading branch information
Kurocon committed Sep 2, 2024
1 parent 5cec3ce commit 9555ca3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion amelie/calendar/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ def save(self, *args, **kwargs):

def description_short(self):
char_limit = 150
location_prefix = " @" if self.location is not "" else ""
location_prefix = " @" if self.location != "" else ""
activity_prefix = (self.as_leaf_class().activity_label.name_en + " - ") if self.as_leaf_class().activity_label else ""
total_string = f"{activity_prefix}{self.begin.strftime('%d/%m/%Y, %H:%M')}{location_prefix}{self.location} {self.promo_en}"

Expand Down

0 comments on commit 9555ca3

Please sign in to comment.