add created property without netmon sync

This commit is contained in:
Dominik Heidler 2015-11-06 18:18:27 +01:00
parent cb1215ac8a
commit 09c0f4abc2
1 changed files with 1 additions and 2 deletions

View File

@ -57,6 +57,7 @@ def import_nodewatcher_xml(mac, xml):
])
}})
else:
router_update["created"] = datetime.datetime.utcnow()
router_id = db.routers.insert_one(router_update).inserted_id
status = router_update["status"]
except ValueError:
@ -299,6 +300,4 @@ def netmon_fetch_router_info(mac):
except IndexError:
pass
router["created"] = datetime.datetime.utcnow()
return router