fixed member photos updating on force speech updates
This commit is contained in:
parent
8b3a48da10
commit
cb672cc385
1 changed files with 5 additions and 2 deletions
|
@ -69,8 +69,11 @@ public class Main {
|
|||
Logger.pink("Adding Speeches to DB...");
|
||||
mongoDBHandler.insertSpeeches(speechIndex.getSpeeches());
|
||||
|
||||
Logger.pink("Uploading Member Photos to DB...");
|
||||
mongoDBHandler.uploadMemberPhotos();
|
||||
// only upload member photos if database was empty by default, not when speeches are force-overwritten
|
||||
if (!FORCE_UPLOAD_SPEECHES) {
|
||||
Logger.pink("Uploading Member Photos to DB...");
|
||||
mongoDBHandler.uploadMemberPhotos();
|
||||
}
|
||||
}
|
||||
|
||||
// Alle Informationen (Parlamentarier, Reden, Kommentare etc.) lesen und in die Mongo-DB einfügen, falls diese noch nicht vorhanden sind.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue