manaviel85370 commited on
Commit
ce70327
Β·
1 Parent(s): 837ccba

refactor rendering of event information

Browse files
Files changed (1) hide show
  1. src/utils/Event.py +4 -4
src/utils/Event.py CHANGED
@@ -157,6 +157,8 @@ class Event:
157
 
158
  # Prepare individual parts of the string, only if they are not empty or None
159
  event_str = ""
 
 
160
  if self._title:
161
  event_str += f"πŸ“Œ Event: {self._title}\n"
162
  if self._organizers:
@@ -169,12 +171,10 @@ class Event:
169
  event_str += f"🏠 Address: {self._address}\n"
170
  if self._categories:
171
  event_str += f"🏷 Categories: {', '.join(self._categories)}\n"
172
- if self._description:
173
- event_str += f"πŸ“ Description: {self._description}\n"
174
  if self._prices:
175
  event_str += f"πŸ’° Prices: {', '.join(map(str, self._prices))}\n"
176
- if self._url:
177
- event_str += f"πŸ”— URL: {self._url}"
178
 
179
  return event_str
180
 
 
157
 
158
  # Prepare individual parts of the string, only if they are not empty or None
159
  event_str = ""
160
+ if self._url:
161
+ event_str += f"πŸ”— URL: {self._url}"
162
  if self._title:
163
  event_str += f"πŸ“Œ Event: {self._title}\n"
164
  if self._organizers:
 
171
  event_str += f"🏠 Address: {self._address}\n"
172
  if self._categories:
173
  event_str += f"🏷 Categories: {', '.join(self._categories)}\n"
 
 
174
  if self._prices:
175
  event_str += f"πŸ’° Prices: {', '.join(map(str, self._prices))}\n"
176
+ if self._description:
177
+ event_str += f"πŸ“ Description: \n {self._description}\n"
178
 
179
  return event_str
180