Commit 1af26b2f authored by Birte Kristina Friesel's avatar Birte Kristina Friesel
Browse files

remove bundled zugbildungsplan, use daily updates from dbdb instead

parent 4ae2f6da
Loading
Loading
Loading
Loading
+0 −5
Original line number Diff line number Diff line
@@ -47,11 +47,6 @@ Files: share/dbdb_wagen.json
Copyright: 2020 Daniel Friesel
License: CC0-1.0

Files: share/zugbildungsplan.json
Copyright: 2020 DB Fernverkehr AG
   2020 Daniel Friesel
License: CC-BY-4.0

Files: templates/*
Copyright: 2020 Daniel Friesel
License: BSD-2-Clause
+18 −12
Original line number Diff line number Diff line
@@ -101,6 +101,7 @@ sub startup {

	$self->attr(
		ice_type_map => sub {
			if ( -r 'share/zugbildungsplan.json' ) {
				my $ice_type_map = JSON->new->utf8->decode(
					scalar read_file('share/zugbildungsplan.json') );
				my $ret;
@@ -114,13 +115,18 @@ sub startup {
				}
				return $ret;
			}
			return {};
		}
	);

	$self->attr(
		train_details_db => sub {
			if ( -r 'share/zugbildungsplan.json' ) {
				return JSON->new->utf8->decode(
					scalar read_file('share/zugbildungsplan.json') )->{train};
			}
			return {};
		}
	);

	$self->attr(

share/zugbildungsplan.json

deleted100644 → 0
+0 −1

File deleted.

Preview size limit exceeded, changes collapsed.