X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=sfa%2Fserver%2Fsfa-start.py;h=0dd53b6e5a8da6aa0342f091231675a9ef82fc96;hb=8a6e87c49dd654bd91158d76c0692b1597593784;hp=1596cc3f68fca58a15960060a66f441a692f59ca;hpb=04255538dbacfa52a45e8439b9c9ea590a82dc47;p=sfa.git diff --git a/sfa/server/sfa-start.py b/sfa/server/sfa-start.py index 1596cc3f..0dd53b6e 100755 --- a/sfa/server/sfa-start.py +++ b/sfa/server/sfa-start.py @@ -130,8 +130,9 @@ def update_cert_records(gids): Removes old records from the db. """ # import db stuff here here so this module can be loaded by PlcComponentApi - from sfa.storage.alchemy import dbsession + from sfa.storage.alchemy import global_dbsession from sfa.storage.model import RegRecord + dbsession = global_dbsession if not gids: return # get records that actually exist in the db