Changes code to only store the first bootloader telem instead of overriding it

This commit is contained in:
VakarisZ 2020-04-02 19:05:23 +03:00
parent bee46c0ec5
commit cba2f232fc
1 changed files with 1 additions and 1 deletions

View File

@ -17,7 +17,7 @@ class BootloaderService:
telem['os_version'] = "Unknown OS"
telem_id = BootloaderService.get_mongo_id_for_bootloader_telem(telem)
mongo.db.bootloader_telems.update({'_id': telem_id}, telem, upsert=True)
mongo.db.bootloader_telems.update({'_id': telem_id}, {'$setOnInsert': telem}, upsert=True)
will_monkey_run = BootloaderService.is_os_compatible(telem)
try: