0ptr/models/system.py

13 lines
211 B
Python
Raw Normal View History

2023-06-09 11:19:47 +00:00
from .base import Base
class System(Base):
2023-06-10 17:39:32 +00:00
@classmethod
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()}'