Skip to content

Instantly share code, notes, and snippets.

@XANi
XANi / nortel.rb
Last active July 22, 2020 19:10
class Nortel < Oxidized::Model
# nortel switch config download
prompt /^>>.+\#\s/
comment '/* '
cmd '/info/sys/general' do |c|
comment c
end
cmd '/info/link' do |c|
comment c
end
@@ -1191,16 +1191,6 @@ class TimelineExtractor:
).order_by(
models.HistoricalEvent.start_date_days.desc()
).first()
- if capital_event is None or capital_event.planet.planet_id != capital.planet_id:
- self._session.add(models.HistoricalEvent(
- event_type=models.HistoricalEventType.capital_relocation,
- country=country_model,
- leader=ruler,
- start_date_days=self._date_in_days,