Pipeline: Restrict version of peewee to 3.12.0 to prevent null foreign key error for uploading entities
@@ -4,7 +4,12 @@ lxml
nltk==3.4.5
numpy
opencv-python==3.4.8.29
-peewee
+# Sometime between versions 3.12.0 and 3.13.3, a change was made that influences how batch
+# inserts are made that breaks the function for uploading entities. 3.12.0 lets the code
+# create all entities, then bounding box models that refer to those entities, before
+# uploading either of them, and it still resolves the references to the entities correctly.
+# The references do not resolve correctly in 3.13.3, hence hard-coding Peewee to 3.12.0.
+peewee==3.12.0
psycopg2-binary
pysbd==0.3.0
pytorch-crf==0.7.2
