Skip to content

Commit

Permalink
Allow for gothunderbirds to go over old events to include the score. …
Browse files Browse the repository at this point in the history
…Fixed error involved with this
  • Loading branch information
SamuelmdLow committed Aug 27, 2024
1 parent 8283676 commit 5f3c396
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions events/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -322,7 +322,7 @@ async def gothunderbirds_create_event(self, ical_component):
)
else:
event = await self.filter(event_url=ical_component.get('url')).afirst()
if event.update_mode != 2:
if event.update_mode == 0: # Go Thunderbirds is unqiue because the events are updated after they pass to include the result
return None


Expand All @@ -343,7 +343,7 @@ async def gothunderbirds_create_event(self, ical_component):

event.description=" ".join(ical_component.get('description').split(" ")[0:-1])

splitDesc = ical_component.get('description').split(" ")
splitDesc = ical_component.get('description').replace("[W] ", "").replace("[L] ", "").split("\n")[0].split(" ")
i = 0
while splitDesc[i][0].isupper():
i = i + 1
Expand Down
4 changes: 2 additions & 2 deletions ubyssey/static_src/src/js/components/Events/calendar.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ function displayEventTime(start, end) {

function eventsTags(event) {
var tags = [];
if (event.host != null) {
if (event.host != null && event.host != "") {
tags.push(slugify(event.host));
}
tags.push(slugify(event.category));
Expand Down Expand Up @@ -322,7 +322,7 @@ function EventsCalendar({events}) {
}

function getHosts(hosts, event) {
if (event.host != null) {
if (event.host != null && event.host != "") {
if (!(hosts.includes(event.host))) {
hosts.push(event.host);
}
Expand Down

0 comments on commit 5f3c396

Please sign in to comment.