gitenberg-dev / giten_site

django repo for running the GITenberg website
http://www.gitenberg.org
40 stars 5 forks source link

Fix loading repo name from yaml #63

Closed bdr99 closed 6 years ago

bdr99 commented 6 years ago

The addBookFromYaml function was not loading the repo name into the database, so this PR includes a fix for this issue.

eshellman commented 6 years ago

I think it's BookMetadata.metadata._repo

bdr99 commented 6 years ago

OK, now we have changed our approach for the load_repos command and how the repo name gets passed to the addBookFromYaml command. The load_repos command now passes the BookMetadata object directly to the addBookFromYaml command after adding the _repo property to its metadata dictionary.