aswi2020sebela-gitlab/python-module/Utilities/CSV/CSVDataLine.py @ 68f40c6c
1 | b3262a44 | petrh | class CSVDataLine: |
---|---|---|---|
2 | 9990127e | petrh | """
|
3 | Class that specifies the look of data line in processed csv file
|
||
4 | prepared for database
|
||
5 | """
|
||
6 | def __init__(self, name, date, occurrence): |
||
7 | b3262a44 | petrh | self.name = name |
8 | self.date = date |
||
9 | 9990127e | petrh | self.occurrence = occurrence |
10 | b3262a44 | petrh | |
11 | def to_csv(self): |
||
12 | 9990127e | petrh | return self.name + ";" + str(self.occurrence) + ";" + self.date |
13 | b3262a44 | petrh |