Skip to content

Commit

Permalink
fix flake8 errors
Browse files Browse the repository at this point in the history
  • Loading branch information
davidye007 committed Feb 9, 2025
1 parent 9e585a1 commit 34f8f0e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions trails-viz-api/trailsvizapi/repository/chatbot_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
def get_project_chatbot_data(project, characteristic):
chatbot_data_df_long = _prep_chatbot_project_long_df(project=project, characteristic=characteristic)
aggregate_data = _prep_chatbot_aggregate_counts(df_long=chatbot_data_df_long,
characteristic=characteristic)
characteristic=characteristic)
if aggregate_data is None:
return Response(status=204)
return jsonify(aggregate_data), 200
Expand All @@ -20,7 +20,7 @@ def get_project_chatbot_data(project, characteristic):
def get_chatbot_data(siteid, characteristic):
chatbot_data_df_long = _prep_chatbot_site_long_df(siteid=siteid, characteristic=characteristic)
aggregate_data = _prep_chatbot_aggregate_counts(df_long=chatbot_data_df_long,
characteristic=characteristic)
characteristic=characteristic)
if aggregate_data is None:
return Response(status=204)
return jsonify(aggregate_data), 200
Expand Down Expand Up @@ -157,5 +157,6 @@ def _prep_chatbot_aggregate_counts(df_long, characteristic):
result[characteristic]["Total"] = all_years_totals
return result


def _add_additional_features(df, feature):
pass

0 comments on commit 34f8f0e

Please sign in to comment.