Removed some vestigial commented code.

This commit is contained in:
Fabio Manganiello 2023-04-29 15:28:44 +02:00
parent 23b851e9d7
commit 68d8befa34
Signed by: blacklight
GPG key ID: D90FBA7F76362774

View file

@ -1,7 +1,6 @@
from typing import Collection, Dict, Iterable, Optional, Union from typing import Collection, Dict, Iterable, Optional, Union
from typing_extensions import override from typing_extensions import override
# from platypush.common.db import Base
from platypush.entities import EntityManager from platypush.entities import EntityManager
from platypush.entities.variables import Variable from platypush.entities.variables import Variable
from platypush.plugins import Plugin, action from platypush.plugins import Plugin, action
@ -22,7 +21,6 @@ class VariablePlugin(Plugin, EntityManager):
self._db_vars: Dict[str, Optional[str]] = {} self._db_vars: Dict[str, Optional[str]] = {}
""" Local cache for db variables. """ """ Local cache for db variables. """
# db.create_all(db.get_engine(), Base)
with db.get_session() as session: with db.get_session() as session:
self._db_vars.update( self._db_vars.update(
{ # type: ignore { # type: ignore