phanikumv commented on code in PR #32177:
URL: https://github.com/apache/airflow/pull/32177#discussion_r1250645121
##########
airflow/www/views.py:
##########
@@ -933,10 +938,13 @@ def _iter_parsed_moved_data_table_names():
permissions.RESOURCE_ADMIN_MENU,
) in user_permissions and conf.getboolean("webserver",
"warn_deployment_exposure"):
robots_file_access_count = (
- session.query(Log)
- .filter(Log.event == "robots")
- .filter(Log.dttm > (utcnow() - datetime.timedelta(days=7)))
- .count()
+ select(Log)
+ .where(Log.event == "robots")
+ .where(Log.dttm > (utcnow() - datetime.timedelta(days=7)))
+ # .count()
Review Comment:
Please check
[c56bafc](https://github.com/apache/airflow/pull/32177/commits/c56bafc4f4ef7f68819b4901081cb2ad1112e461)
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]