Skip to content

Commit 0632b2e

Browse files
committed
fix
1 parent 79c1c09 commit 0632b2e

File tree

3 files changed

+7
-1
lines changed

3 files changed

+7
-1
lines changed

config/config.ini

+4
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,10 @@ target_file_path =
1515
# Path to metadata for plain text target files. Needs to be a CSV or TSV file with at least the filename as metadata
1616
target_metadata =
1717

18+
# For backwards compatibility. Will remove in future versions
19+
source_url =
20+
target_url =
21+
1822
[TEXT_PARSING]
1923
##########################################################################
2024
## If TEI parsing was not done by PhiloLogic, you can parse your source ##

docker/Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ RUN curl -sL https://deb.nodesource.com/setup_16.x | sudo -E bash && apt-get ins
88

99
RUN apt-get clean && rm -rf /var/lib/apt
1010

11-
RUN mkdir textpair && curl -L https://github.com/ARTFL-Project/text-pair/archive/v2.1.0.3.tar.gz| tar xz -C textpair --strip-components 1 &&\
11+
RUN mkdir textpair && curl -L https://github.com/ARTFL-Project/text-pair/archive/v2.1.0.4.tar.gz| tar xz -C textpair --strip-components 1 &&\
1212
cd textpair && sh install.sh && mkdir -p /var/www/html/text-pair
1313

1414
RUN echo "[WEB_APP]\nweb_app_path = /var/www/html/text-pair\napi_server = http://localhost/text-pair-api\n[DATABASE]\ndatabase_name = textpair\ndatabase_user = textpair\ndatabase_password = textpair" > /etc/text-pair/global_settings.ini

lib/textpair/parse_config.py

+2
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,8 @@ def __parse_config(self):
3737
self.web_app_config["api_server"] = global_config["WEB_APP"]["api_server"]
3838
config = configparser.ConfigParser()
3939
config.read(self.__cli_args["config"])
40+
self.web_app_config["source_url"] = config["TEXT_SOURCES"]["source_url"]
41+
self.web_app_config["target_url"] = config["TEXT_SOURCES"]["target_url"]
4042
if self.__cli_args["is_philo_db"] is True:
4143
self.web_app_config["source_philo_db_path"] = config["TEXT_SOURCES"]["source_file_path"]
4244
self.web_app_config["target_philo_db_path"] = config["TEXT_SOURCES"]["target_file_path"] or config["TEXT_SOURCES"]["source_file_path"]

0 commit comments

Comments
 (0)