manaviel85370
commited on
Commit
Β·
ce70327
1
Parent(s):
837ccba
refactor rendering of event information
Browse files- 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.
|
177 |
-
event_str += f"
|
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 |
|