eregs / regulations-core

An engine that supplies the API that allows users to read regulations and their various layers.
Creative Commons Zero v1.0 Universal
16 stars 27 forks source link

Import_docs sequencing error #73

Open cmc333333 opened 7 years ago

cmc333333 commented 7 years ago

There are some dependencies between document types (e.g. layers pointing to regulations) which should be accounted for in the import_docs script.

Current work around: run the script twice.

gregoryfoster commented 7 years ago

I ran into this issue this evening, thanks for documenting the workaround! In my circumstance, I was able to validate there was an issue by seeing regulations-core eregs.db contained no rows in the regcore_layer table (as contrasted w/ 60670 after running import_docs a second time).

$ sqlite3 eregs.db 
sqlite> select count(*) from regcore_layer;
0