0ptr/nullptr/models/crew.py

17 lines
280 B
Python
Raw Normal View History

2024-01-24 18:03:57 +00:00
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