-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathActivity.py
41 lines (40 loc) · 1.16 KB
/
Activity.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
class Activity():
def __init__(self,
id,
name,
description,
type,
place,
organizator,
startDate,
startTime,
endDate,
endTime,
currentAttendees,
maxAttendees,
notes,
signups,
location,
):
dayMap = {
"14": 'st',
"15": 'čt',
"16": 'pá',
"17": 'so',
"18": 'ne',
}
self.id = id
self.name = name
self.description = description
self.type = type
self.place = place
self.organizator = organizator
self.startDay = dayMap.get(startDate[:2], "")
self.startTime = startTime
self.endDay = dayMap.get(endDate[:2], "")
self.endTime = endTime
self.currentAttendees = currentAttendees
self.maxAttendees = maxAttendees if maxAttendees != None else "neomezeno"
self.notes = notes
self.signups = signups
self.location = location