diff --git a/database/actions.py b/database/actions.py index cb83c298508a8b378d4adb2880f1e7cf7936bc42..ec5302f7d724d88701d1d71db429b48cb4bee23d 100644 --- a/database/actions.py +++ b/database/actions.py @@ -51,8 +51,8 @@ def temporary_data(connection, file_name, table, year, offset=2, ttable.create(bind=connection) table.populate_temporary(ttable, file_name, header, year, delimiters, null, offset, bind=connection) - if len(table._derivatives) != 0: - table.apply_derivatives(ttable, ttable.columns.keys(), year, bind=connection) + + table.apply_derivatives(ttable, ttable.columns.keys(), year, bind=connection) table.add_pk_to_temporary(ttable, bind=connection) return ttable