Projekt

Obecné

Profil

Stáhnout (374 Bajtů) Statistiky
| Větev: | Revize:
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