You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by GitBox <gi...@apache.org> on 2021/10/25 01:07:41 UTC

[GitHub] [airflow] Woit removed a comment on issue #15354: Error on DAG deletion : AttributeError: type object 'Base' has no attribute '_decl_class_registry'

Woit removed a comment on issue #15354:
URL: https://github.com/apache/airflow/issues/15354#issuecomment-950439709


   for SQLAlchemy 1.4.0
   ```py
   def _get_class_by_tablename(tablename):
       for mapper in Base.mro()[0].registry.mappers:
           if mapper.mapped_table.fullname == tablename:
               return mapper.entity()
       return None
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org