0ptr/nullptr/models/crew.py
2024-01-24 19:03:57 +01:00

17 lines
280 B
Python

from .base import Base
class Crew(Base):
@classmethod
def ext(self):
return 'crw'
def define(self):
self.site = None
self.resources = []
def f(self, detail=1):
r = super().f(detail)
if detail >2:
r += f'\nSite: {self.site}'
return r