Skip to content

Commit

Permalink
chore: ruff formating
Browse files Browse the repository at this point in the history
  • Loading branch information
ZolotarevAlexandr committed Oct 28, 2024
1 parent f5eb770 commit 5326f52
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/api/root/routes.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ def _calendar_baseline():
def _booking_to_vevent(booking, is_personal=False):
string_to_hash = str(booking.id)
hash_ = crc32(string_to_hash.encode("utf-8"))
uid = "music-room-%x@innohassle.ru" % abs(hash_)
uid = f"music-room-{abs(hash_):x}@innohassle.ru"

vevent = icalendar.Event()
vevent.add("uid", uid)
Expand Down

0 comments on commit 5326f52

Please sign in to comment.