social-clusters/prepare_dataset/military.py

13 lines
405 B
Python
Raw Normal View History

2023-06-05 13:02:49 +04:00
from prepare_dataset.raw_data import RawData
class Military:
def __init__(self, raw_military):
data = RawData(raw_military)
self.id = data.get_int('id')
self.unit_id = data.get_int('unit_id')
self.unit = data.get_str('unit')
self.country_id = data.get_int('country_id')
self.year_from = data.get_int('from')
self.until = data.get_int('until')