19 lines
663 B
Python
19 lines
663 B
Python
from bot.yomichan.exporters.base.exporter import BaseExporter
|
|
|
|
|
|
class JitenonExporter(BaseExporter):
|
|
def _get_revision(self, entries):
|
|
modified_date = None
|
|
for entry in entries:
|
|
if modified_date is None or entry.modified_date > modified_date:
|
|
modified_date = entry.modified_date
|
|
revision = f"{self._target.value};{modified_date}"
|
|
return revision
|
|
|
|
def _get_attribution(self, entries):
|
|
modified_date = None
|
|
for entry in entries:
|
|
if modified_date is None or entry.modified_date > modified_date:
|
|
attribution = entry.attribution
|
|
return attribution
|