0ptr/models/system.py

12 lines
196 B
Python
Raw Normal View History

2023-06-09 11:19:47 +00:00
from .base import Base
class System(Base):
2023-06-09 11:19:47 +00:00
def ext(self):
return 'stm'
2023-06-09 20:20:46 +00:00
def path(self):
sector, symbol = self.symbol.split('-')
return f'atlas/{sector}/{symbol}.{self.ext()}'